]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - crypto/echainiv.c
crypto: echainiv - Remove AEAD compatibility code
[mirror_ubuntu-bionic-kernel.git] / crypto / echainiv.c
index d3896c7e634be28f27864593b2f0eeff9ba34211..806ebe73cb64b5df3f22902806b67ce26907da7e 100644 (file)
@@ -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;