Skip to content

Commit 9ef074f

Browse files
committed
crypto: authenc - Remove reference to crypto_hash
Now that there are no more legacy hash implementations we can remove the reference to crypto_hash. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 3106caa commit 9ef074f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎crypto/authenc.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,7 @@ static struct crypto_instance *crypto_authenc_alloc(struct rtattr **tb)
436436
inst->alg.cra_type = &crypto_aead_type;
437437

438438
inst->alg.cra_aead.ivsize = enc->cra_ablkcipher.ivsize;
439-
inst->alg.cra_aead.maxauthsize = auth->cra_type == &crypto_hash_type ?
440-
auth->cra_hash.digestsize :
441-
auth->cra_type ?
442-
__crypto_shash_alg(auth)->digestsize :
443-
auth->cra_digest.dia_digestsize;
439+
inst->alg.cra_aead.maxauthsize = __crypto_shash_alg(auth)->digestsize;
444440

445441
inst->alg.cra_ctxsize = sizeof(struct crypto_authenc_ctx);
446442

0 commit comments

Comments
 (0)