Lines Matching defs:authsize
899 size_t authsize;
915 authsize = crypto_aead_authsize(tfm);
916 mac_offset = qp_ctx->res[req_id].pbuf + copy_size - authsize;
917 memcpy(a_req->out_mac, mac_offset, authsize);
950 size_t authsize = crypto_aead_authsize(tfm);
957 skip_size = aead_req->assoclen + aead_req->cryptlen - authsize;
959 authsize, skip_size);
960 if (unlikely(copy_size != authsize))
1117 static int sec_aead_setauthsize(struct crypto_aead *aead, unsigned int authsize)
1124 return crypto_aead_setauthsize(a_ctx->fallback_aead_tfm, authsize);
1475 size_t authsize = ctx->a_ctx.mac_len;
1490 cm = (authsize - IV_CM_CAL_NUM) / IV_CM_CAL_NUM;
1504 data_size = aead_req->cryptlen - authsize;
1517 size_t authsize = crypto_aead_authsize(tfm);
1528 ctx->a_ctx.mac_len = authsize;
1535 ctx->a_ctx.mac_len = authsize;
1708 size_t authsize = crypto_aead_authsize(tfm);
1723 authsize, a_req->cryptlen +
1725 if (unlikely(sz != authsize)) {
2236 size_t authsize = crypto_aead_authsize(tfm);
2247 if (unlikely((c_mode == SEC_CMODE_GCM && authsize < DES_BLOCK_SIZE) ||
2248 (c_mode == SEC_CMODE_CCM && (authsize < MIN_MAC_LEN ||
2249 authsize & MAC_LEN_MASK)))) {
2269 sreq->c_req.c_len = req->cryptlen - authsize;
2284 size_t authsize = crypto_aead_authsize(tfm);
2295 req->cryptlen <= authsize))) {