Lines Matching refs:assoclen
145 static int generate_b0(u8 *iv, unsigned int assoclen, unsigned int authsize, in generate_b0() argument
160 if (assoclen) in generate_b0()
173 unsigned int assoclen, in generate_pat() argument
200 if (!assoclen) { in generate_pat()
202 } else if (assoclen <= 14) { in generate_pat()
208 iauth_len = assoclen; in generate_pat()
209 } else if (assoclen <= 65280) { in generate_pat()
223 rc = generate_b0(iv, assoclen, authsize, nbytes, b0); in generate_pat()
233 if (assoclen <= 65280) { in generate_pat()
234 *(u16 *)b1 = assoclen; in generate_pat()
239 *(u32 *)&b1[2] = assoclen; in generate_pat()
246 if (!assoclen) { in generate_pat()
248 } else if (assoclen <= 14) { in generate_pat()
280 atomic64_add(assoclen, &nx_ctx->stats->aes_bytes); in generate_pat()
294 to_process = min_t(u32, assoclen - processed, in generate_pat()
302 if ((to_process + processed) < assoclen) { in generate_pat()
328 atomic64_add(assoclen, &nx_ctx->stats->aes_bytes); in generate_pat()
331 } while (processed < assoclen); in generate_pat()
343 unsigned int assoclen) in ccm_nx_decrypt() argument
360 req->src, nbytes + req->assoclen, authsize, in ccm_nx_decrypt()
363 rc = generate_pat(desc->info, req, nx_ctx, authsize, nbytes, assoclen, in ccm_nx_decrypt()
383 &to_process, processed + req->assoclen, in ccm_nx_decrypt()
421 unsigned int assoclen) in ccm_nx_encrypt() argument
433 rc = generate_pat(desc->info, req, nx_ctx, authsize, nbytes, assoclen, in ccm_nx_encrypt()
452 &to_process, processed + req->assoclen, in ccm_nx_encrypt()
484 req->dst, nbytes + req->assoclen, authsize, in ccm_nx_encrypt()
505 return ccm_nx_encrypt(req, &desc, req->assoclen - 8); in ccm4309_aes_nx_encrypt()
519 return ccm_nx_encrypt(req, &desc, req->assoclen); in ccm_aes_nx_encrypt()
535 return ccm_nx_decrypt(req, &desc, req->assoclen - 8); in ccm4309_aes_nx_decrypt()
549 return ccm_nx_decrypt(req, &desc, req->assoclen); in ccm_aes_nx_decrypt()