Lines Matching refs:authsize
164 unsigned int authsize)
166 switch (authsize) {
573 unsigned int authsize = crypto_aead_authsize(aead);
574 unsigned int cryptlen = req->cryptlen - authsize;
577 scatterwalk_map_and_copy(iauth_tag, req->src, cryptlen, authsize, 0);
578 return memcmp(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0;
618 unsigned int authsize = crypto_aead_authsize(aead);
622 if (cryptlen < authsize)
624 cryptlen -= authsize;
882 unsigned int authsize)
886 switch (authsize) {
895 return crypto_aead_setauthsize(ctx->child, authsize);
1095 unsigned int authsize)
1099 if (authsize != 16)
1102 return crypto_aead_setauthsize(ctx->child, authsize);
1131 unsigned int authsize = crypto_aead_authsize(aead);
1143 memset(rctx->auth_tag, 0, authsize);
1146 req->cryptlen - authsize,
1147 authsize, 0);
1149 sg_init_one(cipher, rctx->auth_tag, authsize);
1158 assoclen += 8 + req->cryptlen - (enc ? 0 : authsize);
1168 aead_request_set_crypt(subreq, cipher, cipher, enc ? 0 : authsize, iv);