summaryrefslogtreecommitdiff
path: root/crypto/echainiv.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-08-13 17:28:56 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-08-17 16:53:43 +0800
commit52a08691eb960af2c36ffe4fe1f001eed07cde1f (patch)
treeeee589fbc8cc8a195f3ae7efbd3e3f8b1df63d89 /crypto/echainiv.c
parent404f1f40cac03725cb31b37cf30da159b9509825 (diff)
downloadlinux-crypto-52a08691eb960af2c36ffe4fe1f001eed07cde1f.tar.gz
linux-crypto-52a08691eb960af2c36ffe4fe1f001eed07cde1f.zip
crypto: echainiv - Remove AEAD compatibility code
Now that we no longer have any legacy AEAD implementations the compatibility code path can no longer be triggered. This patch removes it. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/echainiv.c')
-rw-r--r--crypto/echainiv.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/crypto/echainiv.c b/crypto/echainiv.c
index d3896c7e..806ebe73 100644
--- a/crypto/echainiv.c
+++ b/crypto/echainiv.c
@@ -247,9 +247,6 @@ static int echainiv_aead_create(struct crypto_template *tmpl,
spawn = aead_instance_ctx(inst);
alg = crypto_spawn_aead_alg(spawn);
- if (alg->base.cra_aead.encrypt)
- goto done;
-
err = -EINVAL;
if (inst->alg.ivsize & (sizeof(u32) - 1) ||
inst->alg.ivsize > MAX_IV_SIZE)
@@ -267,7 +264,6 @@ static int echainiv_aead_create(struct crypto_template *tmpl,
inst->free = aead_geniv_free;
-done:
err = aead_register_instance(tmpl, inst);
if (err)
goto free_inst;