Searched refs:assoclen (Results 1 – 8 of 8) sorted by relevance
/drivers/crypto/nx/ |
D | nx-aes-ccm.c | 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() [all …]
|
D | nx-aes-gcm.c | 113 unsigned int assoclen) in nx_gca() argument 119 unsigned int nbytes = assoclen; in nx_gca() 170 atomic64_add(assoclen, &(nx_ctx->stats->aes_bytes)); in nx_gca() 181 unsigned int assoclen) in gmac() argument 188 unsigned int nbytes = assoclen; in gmac() 243 atomic64_add(assoclen, &(nx_ctx->stats->aes_bytes)); in gmac() 321 unsigned int assoclen) in gcm_aes_nx_crypt() argument 340 if (assoclen == 0) in gcm_aes_nx_crypt() 343 rc = gmac(req, &desc, assoclen); in gcm_aes_nx_crypt() 351 csbcpb->cpb.aes_gcm.bit_length_aad = assoclen * 8; in gcm_aes_nx_crypt() [all …]
|
/drivers/crypto/ |
D | atmel-aes.c | 1503 if (likely(req->assoclen != 0 || ctx->textlen != 0)) in atmel_aes_gcm_process() 1524 atmel_aes_write(dd, AES_AADLENR, req->assoclen); in atmel_aes_gcm_length() 1528 if (unlikely(req->assoclen == 0)) { in atmel_aes_gcm_length() 1534 padlen = atmel_aes_padlen(req->assoclen, AES_BLOCK_SIZE); in atmel_aes_gcm_length() 1535 if (unlikely(req->assoclen + padlen > dd->buflen)) in atmel_aes_gcm_length() 1537 sg_copy_to_buffer(req->src, sg_nents(req->src), dd->buf, req->assoclen); in atmel_aes_gcm_length() 1541 dd->datalen = req->assoclen + padlen; in atmel_aes_gcm_length() 1572 src = scatterwalk_ffwd(ctx->src, req->src, req->assoclen); in atmel_aes_gcm_data() 1574 scatterwalk_ffwd(ctx->dst, req->dst, req->assoclen)); in atmel_aes_gcm_data() 1612 data[0] = cpu_to_be64(req->assoclen * 8); in atmel_aes_gcm_tag_init() [all …]
|
D | talitos.c | 960 areq->assoclen); in ipsec_esp_unmap() 970 areq->assoclen + areq->cryptlen - ivsize); in ipsec_esp_unmap() 997 icvdata = edesc->buf + areq->assoclen + areq->cryptlen; in ipsec_esp_encrypt_done() 1036 req->assoclen + req->cryptlen; in ipsec_esp_decrypt_swauth_done() 1186 areq->assoclen + cryptlen); in ipsec_esp() 1193 ret = talitos_sg_map(dev, areq->src, areq->assoclen, edesc, in ipsec_esp() 1241 &desc->ptr[4], sg_count, areq->assoclen, tbl_off); in ipsec_esp() 1256 sg_count, areq->assoclen, tbl_off); in ipsec_esp() 1285 addr += areq->assoclen + cryptlen; in ipsec_esp() 1294 &desc->ptr[6], sg_count, areq->assoclen + in ipsec_esp() [all …]
|
D | picoxcell_crypto.c | 334 total = areq->assoclen + areq->cryptlen; in spacc_aead_make_ddts() 398 total = req->is_encrypt ? 0 : areq->assoclen; in spacc_aead_make_ddts() 428 unsigned total = areq->assoclen + areq->cryptlen + in spacc_aead_free_ddts() 554 aead_request_set_ad(subreq, req->assoclen); in spacc_aead_do_fallback() 588 assoc_len = aead_req->assoclen; in spacc_aead_submit()
|
D | ixp4xx_crypto.c | 352 int decryptlen = req->assoclen + req->cryptlen - authsize; in finish_scattered_hmac() 1031 crypt->auth_len = req->assoclen + cryptlen; in aead_perform() 1181 return aead_perform(req, 1, req->assoclen, req->cryptlen, req->iv); in aead_encrypt() 1186 return aead_perform(req, 0, req->assoclen, req->cryptlen, req->iv); in aead_decrypt()
|
/drivers/crypto/caam/ |
D | caamalg.c | 2125 append_seq_in_ptr(desc, src_dma, req->assoclen + req->cryptlen, in init_aead_job() 2144 req->assoclen + req->cryptlen + authsize, in init_aead_job() 2148 req->assoclen + req->cryptlen - authsize, in init_aead_job() 2152 append_math_add_imm_u32(desc, REG3, ZERO, IMM, req->assoclen); in init_aead_job() 2170 if (encrypt && generic_gcm && !(req->assoclen + req->cryptlen)) in init_gcm_job() 2353 src_nents = sg_count(req->src, req->assoclen + req->cryptlen); in aead_edesc_alloc() 2355 req->assoclen + req->cryptlen + in aead_edesc_alloc() 2359 req->assoclen + req->cryptlen + in aead_edesc_alloc() 2481 if (req->assoclen < 8) in ipsec_gcm_encrypt() 2560 if (req->assoclen < 8) in ipsec_gcm_decrypt() [all …]
|
/drivers/crypto/qat/qat_common/ |
D | qat_algs.c | 840 cipher_param->cipher_offset = areq->assoclen; in qat_alg_aead_dec() 844 auth_param->auth_len = areq->assoclen + cipher_param->cipher_length; in qat_alg_aead_dec() 885 cipher_param->cipher_offset = areq->assoclen; in qat_alg_aead_enc() 888 auth_param->auth_len = areq->assoclen + areq->cryptlen; in qat_alg_aead_enc()
|