Lines Matching refs:assoclen
102 unsigned int assoclen) in nx_gca() argument
108 unsigned int nbytes = assoclen; in nx_gca()
159 atomic64_add(assoclen, &(nx_ctx->stats->aes_bytes)); in nx_gca()
169 static int gmac(struct aead_request *req, const u8 *iv, unsigned int assoclen) in gmac() argument
176 unsigned int nbytes = assoclen; in gmac()
231 atomic64_add(assoclen, &(nx_ctx->stats->aes_bytes)); in gmac()
308 unsigned int assoclen) in gcm_aes_nx_crypt() argument
325 if (assoclen == 0) in gcm_aes_nx_crypt()
328 rc = gmac(req, rctx->iv, assoclen); in gcm_aes_nx_crypt()
336 csbcpb->cpb.aes_gcm.bit_length_aad = assoclen * 8; in gcm_aes_nx_crypt()
337 if (assoclen) { in gcm_aes_nx_crypt()
339 assoclen); in gcm_aes_nx_crypt()
359 processed + req->assoclen, in gcm_aes_nx_crypt()
396 req->dst, req->assoclen + nbytes, in gcm_aes_nx_crypt()
404 itag, req->src, req->assoclen + nbytes, in gcm_aes_nx_crypt()
423 return gcm_aes_nx_crypt(req, 1, req->assoclen); in gcm_aes_nx_encrypt()
433 return gcm_aes_nx_crypt(req, 0, req->assoclen); in gcm_aes_nx_decrypt()
447 if (req->assoclen < 8) in gcm4106_aes_nx_encrypt()
450 return gcm_aes_nx_crypt(req, 1, req->assoclen - 8); in gcm4106_aes_nx_encrypt()
464 if (req->assoclen < 8) in gcm4106_aes_nx_decrypt()
467 return gcm_aes_nx_crypt(req, 0, req->assoclen - 8); in gcm4106_aes_nx_decrypt()