Lines Matching refs:authsize
169 unsigned int authsize) in crypto_gcm_setauthsize() argument
171 switch (authsize) { in crypto_gcm_setauthsize()
578 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_verify() local
579 unsigned int cryptlen = req->cryptlen - authsize; in crypto_gcm_verify()
582 scatterwalk_map_and_copy(iauth_tag, req->src, cryptlen, authsize, 0); in crypto_gcm_verify()
583 return crypto_memneq(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0; in crypto_gcm_verify()
623 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_decrypt() local
627 if (cryptlen < authsize) in crypto_gcm_decrypt()
629 cryptlen -= authsize; in crypto_gcm_decrypt()
882 unsigned int authsize) in crypto_rfc4106_setauthsize() argument
886 switch (authsize) { in crypto_rfc4106_setauthsize()
895 return crypto_aead_setauthsize(ctx->child, authsize); in crypto_rfc4106_setauthsize()
1093 unsigned int authsize) in crypto_rfc4543_setauthsize() argument
1097 if (authsize != 16) in crypto_rfc4543_setauthsize()
1100 return crypto_aead_setauthsize(ctx->child, authsize); in crypto_rfc4543_setauthsize()
1129 unsigned int authsize = crypto_aead_authsize(aead); in crypto_rfc4543_crypt() local
1141 memset(rctx->auth_tag, 0, authsize); in crypto_rfc4543_crypt()
1144 req->cryptlen - authsize, in crypto_rfc4543_crypt()
1145 authsize, 0); in crypto_rfc4543_crypt()
1147 sg_init_one(cipher, rctx->auth_tag, authsize); in crypto_rfc4543_crypt()
1156 assoclen += 8 + req->cryptlen - (enc ? 0 : authsize); in crypto_rfc4543_crypt()
1176 aead_request_set_crypt(subreq, cipher, cipher, enc ? 0 : authsize, iv); in crypto_rfc4543_crypt()
1186 unsigned int authsize = crypto_aead_authsize(aead); in crypto_rfc4543_copy_src_to_dst() local
1187 unsigned int nbytes = req->cryptlen - (enc ? 0 : authsize); in crypto_rfc4543_copy_src_to_dst()