diff --git a/crypto/ccm.c b/crypto/ccm.c index 6b815ece51c6..30c8f10408a3 100644 --- a/crypto/ccm.c +++ b/crypto/ccm.c @@ -753,7 +753,7 @@ static int crypto_rfc4309_create(struct crypto_template *tmpl, inst->alg.ivsize = 8; inst->alg.chunksize = crypto_aead_alg_chunksize(alg); - inst->alg.maxauthsize = 16; + inst->alg.maxauthsize = crypto_aead_alg_maxauthsize(alg); inst->alg.base.cra_ctxsize = sizeof(struct crypto_rfc4309_ctx);