Lines Matching refs:authsize
143 unsigned int authsize) in crypto_gcm_setauthsize() argument
145 return crypto_gcm_check_authsize(authsize); in crypto_gcm_setauthsize()
465 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_verify() local
466 unsigned int cryptlen = req->cryptlen - authsize; in crypto_gcm_verify()
470 req->assoclen + cryptlen, authsize, 0); in crypto_gcm_verify()
471 return crypto_memneq(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0; in crypto_gcm_verify()
500 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_decrypt() local
504 cryptlen -= authsize; in crypto_gcm_decrypt()
702 unsigned int authsize) in crypto_rfc4106_setauthsize() argument
707 err = crypto_rfc4106_check_authsize(authsize); in crypto_rfc4106_setauthsize()
711 return crypto_aead_setauthsize(ctx->child, authsize); in crypto_rfc4106_setauthsize()
910 unsigned int authsize) in crypto_rfc4543_setauthsize() argument
914 if (authsize != 16) in crypto_rfc4543_setauthsize()
917 return crypto_aead_setauthsize(ctx->child, authsize); in crypto_rfc4543_setauthsize()
926 unsigned int authsize = crypto_aead_authsize(aead); in crypto_rfc4543_crypt() local
932 (enc ? 0 : authsize); in crypto_rfc4543_crypt()
944 enc ? 0 : authsize, iv); in crypto_rfc4543_crypt()