Home
last modified time | relevance | path

Searched refs:cryptlen (Results 1 – 19 of 19) sorted by relevance

/linux-4.1.27/crypto/
Dauthenc.c40 unsigned int cryptlen; member
135 areq_ctx->cryptlen); in authenc_geniv_ahash_update_done()
145 areq_ctx->cryptlen, in authenc_geniv_ahash_update_done()
164 areq_ctx->cryptlen, in authenc_geniv_ahash_done()
182 unsigned int cryptlen = req->cryptlen; in authenc_verify_ahash_update_done() local
188 areq_ctx->cryptlen); in authenc_verify_ahash_update_done()
198 cryptlen -= authsize; in authenc_verify_ahash_update_done()
200 scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen, in authenc_verify_ahash_update_done()
212 cryptlen, req->iv); in authenc_verify_ahash_update_done()
231 unsigned int cryptlen = req->cryptlen; in authenc_verify_ahash_done() local
[all …]
Dauthencesn.c40 unsigned int cryptlen; member
109 areq_ctx->cryptlen); in authenc_esn_geniv_ahash_update_done()
129 areq_ctx->cryptlen, in authenc_esn_geniv_ahash_update_done()
159 areq_ctx->cryptlen, in authenc_esn_geniv_ahash_update_done2()
180 areq_ctx->cryptlen, in authenc_esn_geniv_ahash_done()
199 unsigned int cryptlen = req->cryptlen; in authenc_esn_verify_ahash_update_done() local
205 areq_ctx->cryptlen); in authenc_esn_verify_ahash_update_done()
227 cryptlen -= authsize; in authenc_esn_verify_ahash_update_done()
229 scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen, in authenc_esn_verify_ahash_update_done()
241 cryptlen, req->iv); in authenc_esn_verify_ahash_update_done()
[all …]
Dccm.c124 unsigned int cryptlen) in format_input() argument
142 return set_msg_len(info + 16 - l, cryptlen, l); in format_input()
246 unsigned int cryptlen) in crypto_ccm_auth() argument
258 err = format_input(odata, req, cryptlen); in crypto_ccm_auth()
274 if (cryptlen) in crypto_ccm_auth()
275 get_data_to_compute(cipher, pctx, plain, cryptlen); in crypto_ccm_auth()
289 scatterwalk_map_and_copy(odata, req->dst, req->cryptlen, in crypto_ccm_encrypt_done()
310 unsigned int cryptlen = req->cryptlen; in crypto_ccm_encrypt() local
321 err = crypto_ccm_auth(req, req->src, cryptlen); in crypto_ccm_encrypt()
345 ablkcipher_request_set_crypt(abreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
[all …]
Dgcm.c61 unsigned int cryptlen; member
191 unsigned int cryptlen) in crypto_gcm_init_crypt() argument
216 cryptlen + sizeof(pctx->auth_tag), in crypto_gcm_init_crypt()
267 lengths.b = cpu_to_be64(gctx->cryptlen * 8); in gcm_hash_len()
356 remain = gcm_remain(gctx->cryptlen); in __gcm_hash_crypt_done()
381 if (!err && gctx->cryptlen) { in __gcm_hash_assoc_remain_done()
382 remain = gcm_remain(gctx->cryptlen); in __gcm_hash_assoc_remain_done()
386 gctx->src, gctx->cryptlen); in __gcm_hash_assoc_remain_done()
486 remain = gcm_remain(gctx->cryptlen); in gcm_hash()
488 err = gcm_hash_update(req, pctx, compl, gctx->src, gctx->cryptlen); in gcm_hash()
[all …]
Dpcrypt.c177 req->cryptlen, req->iv); in pcrypt_aead_encrypt()
219 req->cryptlen, req->iv); in pcrypt_aead_decrypt()
262 areq->cryptlen, areq->iv); in pcrypt_aead_givencrypt()
Dseqiv.c176 aead_request_set_crypt(subreq, areq->src, areq->dst, areq->cryptlen, in seqiv_aead_givencrypt()
/linux-4.1.27/arch/arm64/crypto/
Daes-ce-ccm-glue.c156 u32 len = req->cryptlen; in ccm_encrypt()
197 scatterwalk_map_and_copy(mac, req->dst, req->cryptlen, in ccm_encrypt()
212 u32 len = req->cryptlen - authsize; in ccm_decrypt()
253 scatterwalk_map_and_copy(buf, req->src, req->cryptlen - authsize, in ccm_decrypt()
/linux-4.1.27/drivers/crypto/
Dtalitos.c906 int cryptlen, struct talitos_ptr *link_tbl_ptr) in sg_to_link_tbl() argument
915 cryptlen -= sg_dma_len(sg); in sg_to_link_tbl()
921 while (be16_to_cpu(link_tbl_ptr->len) <= (-cryptlen)) { in sg_to_link_tbl()
923 cryptlen += be16_to_cpu(link_tbl_ptr->len); in sg_to_link_tbl()
929 + cryptlen); in sg_to_link_tbl()
949 unsigned int cryptlen = areq->cryptlen; in ipsec_esp() local
1010 desc->ptr[4].len = cpu_to_be16(cryptlen); in ipsec_esp()
1021 sg_link_tbl_len = cryptlen; in ipsec_esp()
1024 sg_link_tbl_len = cryptlen + authsize; in ipsec_esp()
1042 desc->ptr[5].len = cpu_to_be16(cryptlen); in ipsec_esp()
[all …]
Dixp4xx_crypto.c342 int decryptlen = req->cryptlen - authsize; in finish_scattered_hmac()
998 unsigned int cryptlen; in aead_perform() local
1012 cryptlen = req->cryptlen; in aead_perform()
1016 cryptlen = req->cryptlen -authsize; in aead_perform()
1032 crypt->auth_len = req->assoclen + ivsize + cryptlen; in aead_perform()
1054 if (unlikely(hmac_inconsistent(req->src, cryptlen, authsize))) { in aead_perform()
1063 req->src, cryptlen, authsize, 0); in aead_perform()
1070 buf = chainup_buffers(dev, req->src, cryptlen + authsize, buf, flags, in aead_perform()
1177 req->cryptlen, req->iv); in aead_encrypt()
1184 req->cryptlen, req->iv); in aead_decrypt()
[all …]
Dpicoxcell_crypto.c328 unsigned nents = sg_count(areq->src, areq->cryptlen); in spacc_aead_make_ddts()
412 unsigned nents = sg_count(areq->src, areq->cryptlen); in spacc_aead_free_ddts()
417 sg_count(areq->dst, areq->cryptlen), in spacc_aead_free_ddts()
617 proc_len = aead_req->cryptlen + assoc_len; in spacc_aead_submit()
/linux-4.1.27/drivers/crypto/qce/
Dcipher.h57 unsigned int cryptlen; member
Dcommon.c198 unsigned int enckeylen, unsigned int cryptlen) in qce_xtskey() argument
209 xtsdusize = min_t(u32, QCE_SECTOR_SIZE, cryptlen); in qce_xtskey()
354 rctx->cryptlen); in qce_setup_regs_ablkcipher()
375 qce_write(qce, REG_ENCR_SEG_SIZE, rctx->cryptlen); in qce_setup_regs_ablkcipher()
Dablkcipher.c77 rctx->cryptlen = req->nbytes; in qce_ablkcipher_async_req_handle()
/linux-4.1.27/arch/x86/crypto/
Daesni-intel_glue.c1047 src = kmalloc(req->cryptlen + auth_tag_len + req->assoclen, in __driver_rfc4106_encrypt()
1051 assoc = (src + req->cryptlen + auth_tag_len); in __driver_rfc4106_encrypt()
1052 scatterwalk_map_and_copy(src, req->src, 0, req->cryptlen, 0); in __driver_rfc4106_encrypt()
1058 aesni_gcm_enc_tfm(aes_ctx, dst, src, (unsigned long)req->cryptlen, iv, in __driver_rfc4106_encrypt()
1060 + ((unsigned long)req->cryptlen), auth_tag_len); in __driver_rfc4106_encrypt()
1075 req->cryptlen + auth_tag_len, 1); in __driver_rfc4106_encrypt()
1101 if (unlikely((req->cryptlen < auth_tag_len) || in __driver_rfc4106_decrypt()
1115 tempCipherLen = (unsigned long)(req->cryptlen - auth_tag_len); in __driver_rfc4106_decrypt()
1137 src = kmalloc(req->cryptlen + req->assoclen, GFP_ATOMIC); in __driver_rfc4106_decrypt()
1140 assoc = (src + req->cryptlen); in __driver_rfc4106_decrypt()
[all …]
/linux-4.1.27/drivers/crypto/nx/
Dnx-aes-ccm.c150 unsigned int cryptlen, u8 *b0) in generate_b0() argument
167 rc = set_msg_len(b0 + 16 - l, cryptlen, l); in generate_b0()
350 unsigned int nbytes = req->cryptlen; in ccm_nx_decrypt()
427 unsigned int nbytes = req->cryptlen; in ccm_nx_encrypt()
Dnx-aes-gcm.c336 unsigned int nbytes = req->cryptlen; in gcm_aes_nx_crypt()
/linux-4.1.27/drivers/crypto/caam/
Dcaamalg.c2212 edesc->src_nents ? 100 : req->cryptlen + in aead_encrypt_done()
2243 req->cryptlen - ctx->authsize, 1); in aead_decrypt_done()
2262 ((req->cryptlen > 1500) ? 1500 : req->cryptlen) + in aead_decrypt_done()
2362 req->assoclen, req->cryptlen, authsize); in init_aead_job()
2371 edesc->src_nents ? 100 : req->cryptlen, 1); in init_aead_job()
2398 append_seq_in_ptr(desc, src_dma, req->assoclen + ivsize + req->cryptlen, in init_aead_job()
2420 append_seq_out_ptr(desc, dst_dma, req->cryptlen + authsize, in init_aead_job()
2423 append_seq_out_ptr(desc, dst_dma, req->cryptlen - authsize, in init_aead_job()
2447 req->assoclen, req->cryptlen, authsize); in init_aead_giv_job()
2455 edesc->src_nents > 1 ? 100 : req->cryptlen, 1); in init_aead_giv_job()
[all …]
/linux-4.1.27/include/linux/
Dcrypto.h193 unsigned int cryptlen; member
1421 if (req->cryptlen < crypto_aead_authsize(crypto_aead_reqtfm(req))) in crypto_aead_decrypt()
1565 unsigned int cryptlen, u8 *iv) in aead_request_set_crypt() argument
1569 req->cryptlen = cryptlen; in aead_request_set_crypt()
/linux-4.1.27/drivers/crypto/qat/qat_common/
Dqat_algs.c863 cipher_param->cipher_length = areq->cryptlen - digst_size; in qat_alg_aead_dec()
910 cipher_param->cipher_length = areq->cryptlen + AES_BLOCK_SIZE; in qat_alg_aead_enc_internal()
914 cipher_param->cipher_length = areq->cryptlen; in qat_alg_aead_enc_internal()
918 auth_param->auth_len = areq->assoclen + areq->cryptlen + AES_BLOCK_SIZE; in qat_alg_aead_enc_internal()