Skip to content

Commit

Permalink
crypto: echainiv - Remove AEAD compatibility code
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
herbertx committed Aug 17, 2015
1 parent 92932d0 commit 66008d4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crypto/echainiv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
Expand Down

0 comments on commit 66008d4

Please sign in to comment.