Home
last modified time | relevance | path

Searched refs:assoclen (Results 1 – 25 of 66) sorted by relevance

123

/linux/drivers/crypto/nx/
A Dnx-aes-ccm.c148 if (assoclen) in generate_b0()
188 if (!assoclen) { in generate_pat()
190 } else if (assoclen <= 14) { in generate_pat()
196 iauth_len = assoclen; in generate_pat()
221 if (assoclen <= 65280) { in generate_pat()
222 *(u16 *)b1 = assoclen; in generate_pat()
227 *(u32 *)&b1[2] = assoclen; in generate_pat()
234 if (!assoclen) { in generate_pat()
236 } else if (assoclen <= 14) { in generate_pat()
331 unsigned int assoclen) in ccm_nx_decrypt() argument
[all …]
A Dnx-aes-gcm.c102 unsigned int assoclen) in nx_gca() argument
108 unsigned int nbytes = assoclen; in nx_gca()
176 unsigned int nbytes = assoclen; in gmac()
308 unsigned int assoclen) in gcm_aes_nx_crypt() argument
325 if (assoclen == 0) 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()
447 if (req->assoclen < 8) in gcm4106_aes_nx_encrypt()
[all …]
/linux/drivers/crypto/
A Domap-aes-gcm.c61 dd->aead_req->assoclen, dd->total, in omap_aes_gcm_done_task()
67 dd->total + dd->aead_req->assoclen, in omap_aes_gcm_done_task()
98 assoclen = req->assoclen; in omap_aes_gcm_copy_buffers()
102 assoclen -= 8; in omap_aes_gcm_copy_buffers()
110 nsg = !!(assoclen && cryptlen); in omap_aes_gcm_copy_buffers()
115 if (assoclen) { in omap_aes_gcm_copy_buffers()
147 dd->assoc_len = assoclen; in omap_aes_gcm_copy_buffers()
245 int err, assoclen; in omap_aes_gcm_crypt() local
255 assoclen = req->assoclen - 8; in omap_aes_gcm_crypt()
257 assoclen = req->assoclen; in omap_aes_gcm_crypt()
[all …]
/linux/drivers/crypto/cavium/nitrox/
A Dnitrox_aead.c207 if (assoclen <= 512) in nitrox_aes_gcm_assoclen_supported()
228 rctx->assoclen = areq->assoclen; in nitrox_aes_gcm_enc()
229 rctx->srclen = areq->assoclen + areq->cryptlen; in nitrox_aes_gcm_enc()
262 rctx->assoclen = areq->assoclen; in nitrox_aes_gcm_dec()
263 rctx->srclen = areq->cryptlen + areq->assoclen; in nitrox_aes_gcm_dec()
397 unsigned int assoclen = areq->assoclen - GCM_RFC4106_IV_SIZE; in nitrox_rfc4106_set_aead_rctx_sglist() local
400 if (areq->assoclen != 16 && areq->assoclen != 20) in nitrox_rfc4106_set_aead_rctx_sglist()
405 sg_set_buf(rctx->src, rctx->assoc, assoclen); in nitrox_rfc4106_set_aead_rctx_sglist()
412 sg_set_buf(rctx->dst, rctx->assoc, assoclen); in nitrox_rfc4106_set_aead_rctx_sglist()
450 aead_rctx->assoclen = areq->assoclen - GCM_RFC4106_IV_SIZE; in nitrox_rfc4106_enc()
[all …]
/linux/crypto/
A Dauthencesn.c96 unsigned int assoclen = req->assoclen; in crypto_authenc_esn_genicv_tail() local
130 unsigned int assoclen = req->assoclen; in crypto_authenc_esn_genicv() local
147 ahash_request_set_crypt(ahreq, dst, hash, assoclen + cryptlen); in crypto_authenc_esn_genicv()
189 unsigned int assoclen = req->assoclen; in crypto_authenc_esn_encrypt() local
195 src = scatterwalk_ffwd(areq_ctx->src, req->src, assoclen); in crypto_authenc_esn_encrypt()
199 err = crypto_authenc_esn_copy(req, assoclen); in crypto_authenc_esn_encrypt()
204 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, assoclen); in crypto_authenc_esn_encrypt()
232 unsigned int assoclen = req->assoclen; in crypto_authenc_esn_decrypt_tail() local
251 dst = scatterwalk_ffwd(areq_ctx->dst, dst, assoclen); in crypto_authenc_esn_decrypt_tail()
280 unsigned int assoclen = req->assoclen; in crypto_authenc_esn_decrypt() local
[all …]
A Daegis128-core.c278 unsigned int assoclen, in crypto_aegis128_process_ad() argument
286 while (assoclen != 0) { in crypto_aegis128_process_ad()
287 unsigned int size = scatterwalk_clamp(&walk, assoclen); in crypto_aegis128_process_ad()
310 assoclen -= size; in crypto_aegis128_process_ad()
313 scatterwalk_done(&walk, 0, assoclen); in crypto_aegis128_process_ad()
346 u64 assoclen, u64 cryptlen) in crypto_aegis128_final() argument
348 u64 assocbits = assoclen * 8; in crypto_aegis128_final()
403 crypto_aegis128_final(&state, &tag, req->assoclen, cryptlen); in crypto_aegis128_encrypt_generic()
429 crypto_aegis128_final(&state, &tag, req->assoclen, cryptlen); in crypto_aegis128_decrypt_generic()
464 crypto_aegis128_process_ad(&state, req->src, req->assoclen, true); in crypto_aegis128_encrypt_simd()
[all …]
A Dchacha20poly1305.c38 __le64 assoclen; member
61 unsigned int assoclen; member
101 req->assoclen + rctx->cryptlen, in poly_verify_tag()
113 req->assoclen + rctx->cryptlen, in poly_copy_tag()
136 src = scatterwalk_ffwd(rctx->src, req->src, req->assoclen); in chacha_decrypt()
177 preq->tail.assoclen = cpu_to_le64(rctx->assoclen); in poly_tail()
239 crypt = scatterwalk_ffwd(rctx->src, crypt, req->assoclen); in poly_cipher()
266 padlen = -rctx->assoclen % POLY1305_BLOCK_SIZE; in poly_adpad()
368 rctx->assoclen = req->assoclen; in poly_genkey()
371 if (rctx->assoclen < 8) in poly_genkey()
[all …]
A Dccm.c143 if (req->assoclen) in format_input()
175 unsigned int assoclen = req->assoclen; in crypto_ccm_auth() local
190 if (assoclen) { in crypto_ccm_auth()
191 ilen = format_adata(idata, assoclen); in crypto_ccm_auth()
210 ilen = 16 - (assoclen + ilen) % 16; in crypto_ccm_auth()
236 req->assoclen + req->cryptlen, in crypto_ccm_encrypt_done()
624 sg_set_buf(rctx->src, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
631 sg_set_buf(rctx->dst, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
643 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4309_crypt()
650 if (req->assoclen != 16 && req->assoclen != 20) in crypto_rfc4309_encrypt()
[all …]
A Dechainiv.c51 req->assoclen + req->cryptlen, in echainiv_encrypt()
63 aead_request_set_ad(subreq, req->assoclen); in echainiv_encrypt()
69 scatterwalk_map_and_copy(info, req->dst, req->assoclen, ivsize, 1); in echainiv_encrypt()
105 aead_request_set_ad(subreq, req->assoclen + ivsize); in echainiv_decrypt()
107 scatterwalk_map_and_copy(req->iv, req->src, req->assoclen, ivsize, 0); in echainiv_decrypt()
A Dgcm.c230 lengths.a = cpu_to_be64(req->assoclen * 8); in gcm_hash_len()
349 remain = gcm_remain(req->assoclen); in gcm_hash_assoc_continue()
375 if (req->assoclen) in gcm_hash_init_continue()
377 req->src, req->assoclen, flags) ?: in gcm_hash_init_continue()
419 req->assoclen + req->cryptlen, in gcm_enc_copy_hash()
476 req->assoclen + cryptlen, authsize, 0); in crypto_gcm_verify()
758 aead_request_set_ad(subreq, req->assoclen - 8); in crypto_rfc4106_crypt()
767 err = crypto_ipsec_check_assoclen(req->assoclen); in crypto_rfc4106_encrypt()
780 err = crypto_ipsec_check_assoclen(req->assoclen); in crypto_rfc4106_decrypt()
977 return crypto_ipsec_check_assoclen(req->assoclen) ?: in crypto_rfc4543_encrypt()
[all …]
A Dseqiv.c75 req->assoclen + req->cryptlen, in seqiv_aead_encrypt()
98 aead_request_set_ad(subreq, req->assoclen + ivsize); in seqiv_aead_encrypt()
101 scatterwalk_map_and_copy(info, req->dst, req->assoclen, ivsize, 1); in seqiv_aead_encrypt()
129 aead_request_set_ad(subreq, req->assoclen + ivsize); in seqiv_aead_decrypt()
131 scatterwalk_map_and_copy(req->iv, req->src, req->assoclen, ivsize, 0); in seqiv_aead_decrypt()
A Daegis128-neon.c18 unsigned int assoclen,
67 unsigned int assoclen, in crypto_aegis128_final_simd() argument
74 ret = crypto_aegis128_final_neon(state, tag_xor, assoclen, cryptlen, in crypto_aegis128_final_simd()
A Dauthenc.c125 req->assoclen + req->cryptlen, in authenc_geniv_ahash_done()
149 req->assoclen + req->cryptlen); in crypto_authenc_genicv()
157 scatterwalk_map_and_copy(hash, req->dst, req->assoclen + req->cryptlen, in crypto_authenc_genicv()
186 skcipher_request_set_crypt(skreq, req->src, req->dst, req->assoclen, in crypto_authenc_copy_assoc()
206 src = scatterwalk_ffwd(areq_ctx->src, req->src, req->assoclen); in crypto_authenc_encrypt()
214 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, req->assoclen); in crypto_authenc_encrypt()
249 src = scatterwalk_ffwd(areq_ctx->src, req->src, req->assoclen); in crypto_authenc_decrypt_tail()
253 dst = scatterwalk_ffwd(areq_ctx->dst, req->dst, req->assoclen); in crypto_authenc_decrypt_tail()
296 req->assoclen + req->cryptlen - authsize); in crypto_authenc_decrypt()
/linux/drivers/crypto/qce/
A Daead.c54 if (req->assoclen) { in qce_aead_done()
120 unsigned int assoclen = req->assoclen; in qce_aead_prepare_dst_buf() local
146 rctx->assoclen); in qce_aead_prepare_dst_buf()
191 unsigned int assoclen = rctx->assoclen; in qce_aead_ccm_prepare_buf_assoclen() local
230 assoclen) != assoclen) in qce_aead_ccm_prepare_buf_assoclen()
234 rctx->assoclen = ALIGN(assoclen + adata_header_len, 16); in qce_aead_ccm_prepare_buf_assoclen()
251 rctx->assoclen); in qce_aead_ccm_prepare_buf_assoclen()
338 if (rctx->assoclen) in qce_aead_ccm_prepare_buf()
397 if (rctx->assoclen) in qce_aead_create_ccm_nonce()
432 rctx->assoclen = req->assoclen - 8; in qce_aead_async_req_handle()
[all …]
/linux/arch/x86/crypto/
A Daegis128-aesni-glue.c45 unsigned int assoclen);
71 unsigned int assoclen) in crypto_aegis128_aesni_process_ad() argument
78 while (assoclen != 0) { in crypto_aegis128_aesni_process_ad()
79 unsigned int size = scatterwalk_clamp(&walk, assoclen); in crypto_aegis128_aesni_process_ad()
104 assoclen -= size; in crypto_aegis128_aesni_process_ad()
108 scatterwalk_done(&walk, 0, assoclen); in crypto_aegis128_aesni_process_ad()
180 crypto_aegis128_aesni_process_ad(&state, req->src, req->assoclen); in crypto_aegis128_aesni_crypt()
182 crypto_aegis128_aesni_final(&state, tag_xor, req->assoclen, cryptlen); in crypto_aegis128_aesni_crypt()
203 req->assoclen + cryptlen, authsize, 1); in crypto_aegis128_aesni_encrypt()
223 req->assoclen + cryptlen, authsize, 0); in crypto_aegis128_aesni_decrypt()
A Daesni-intel_glue.c605 unsigned int assoclen, u8 *hash_subkey, in gcmaes_crypt_by_sg() argument
626 if (req->src->length >= assoclen && req->src->length) { in gcmaes_crypt_by_sg()
634 assocmem = kmalloc(assoclen, flags); in gcmaes_crypt_by_sg()
639 scatterwalk_map_and_copy(assoc, req->src, 0, assoclen, 0); in gcmaes_crypt_by_sg()
645 assoclen); in gcmaes_crypt_by_sg()
648 assoclen); in gcmaes_crypt_by_sg()
728 req->assoclen + req->cryptlen, in gcmaes_encrypt()
749 req->assoclen + req->cryptlen - auth_tag_len, in gcmaes_decrypt()
773 if (unlikely(req->assoclen != 16 && req->assoclen != 20)) in helper_rfc4106_encrypt()
797 if (unlikely(req->assoclen != 16 && req->assoclen != 20)) in helper_rfc4106_decrypt()
[all …]
/linux/drivers/crypto/chelsio/
A Dchcr_algo.c2911 if (req->assoclen) in generate_b0()
2948 if (assoclen) in ccm_format_packet()
2972 unsigned int assoclen; in fill_sec_cpl_for_aead() local
2977 assoclen = req->assoclen - 8; in fill_sec_cpl_for_aead()
2979 assoclen = req->assoclen; in fill_sec_cpl_for_aead()
3024 if (req->assoclen != 16 && req->assoclen != 20) { in aead_ccm_validate_input()
3046 unsigned int sub_type, assoclen = req->assoclen; in create_aead_ccm_wr() local
3056 assoclen -= 8; in create_aead_ccm_wr()
3144 unsigned int dst_size = 0, temp = 0, kctx_len, assoclen = req->assoclen; in create_gcm_wr() local
3155 assoclen = req->assoclen - 8; in create_gcm_wr()
[all …]
/linux/arch/arm64/crypto/
A Daes-ce-ccm-glue.c90 if (req->assoclen) in ccm_init_mac()
103 u32 len = req->assoclen; in ccm_calculate_auth_mac()
169 if (req->assoclen) in ccm_encrypt()
197 scatterwalk_map_and_copy(mac, req->dst, req->assoclen + req->cryptlen, in ccm_encrypt()
227 if (req->assoclen) in ccm_decrypt()
256 req->assoclen + req->cryptlen - authsize, in ccm_decrypt()
A Dghash-ce-glue.c311 u32 len = req->assoclen; in gcm_calculate_auth_mac()
354 lengths.a = cpu_to_be64(req->assoclen * 8); in gcm_encrypt()
357 if (req->assoclen) in gcm_encrypt()
400 scatterwalk_map_and_copy(tag, req->dst, req->assoclen + req->cryptlen, in gcm_encrypt()
422 lengths.a = cpu_to_be64(req->assoclen * 8); in gcm_decrypt()
425 if (req->assoclen) in gcm_decrypt()
432 req->assoclen + req->cryptlen - authsize, in gcm_decrypt()
/linux/drivers/crypto/ccree/
A Dcc_aead.c1317 unsigned int assoclen = areq_ctx->assoclen; in validate_data_size() local
1568 if (req_ctx->assoclen > 0) in config_ccm_adata()
1818 if (req_ctx->assoclen > 0) in cc_gcm()
2029 areq_ctx->assoclen = req->assoclen; in cc_aead_encrypt()
2053 areq_ctx->assoclen = req->assoclen - CCM_BLOCK_IV_SIZE; in cc_rfc4309_ccm_encrypt()
2073 areq_ctx->assoclen = req->assoclen; in cc_aead_decrypt()
2095 areq_ctx->assoclen = req->assoclen - CCM_BLOCK_IV_SIZE; in cc_rfc4309_ccm_decrypt()
2207 areq_ctx->assoclen = req->assoclen - GCM_BLOCK_RFC4_IV_SIZE; in cc_rfc4106_gcm_encrypt()
2234 areq_ctx->assoclen = req->assoclen; in cc_rfc4543_gcm_encrypt()
2258 areq_ctx->assoclen = req->assoclen - GCM_BLOCK_RFC4_IV_SIZE; in cc_rfc4106_gcm_decrypt()
[all …]
A Dcc_buffer_mgr.c56 u32 skip = req->assoclen + req->cryptlen; in cc_copy_mac()
284 unsigned int assoclen) in cc_set_aead_conf_buf() argument
300 if (assoclen > 0) { in cc_set_aead_conf_buf()
508 areq_ctx->assoclen, req->cryptlen); in cc_unmap_aead_request()
590 if (areq_ctx->assoclen == 0) { in cc_aead_chain_assoc()
634 areq_ctx->assoclen, 0, is_last, in cc_aead_chain_assoc()
793 unsigned int size_for_map = req->assoclen + req->cryptlen; in cc_aead_chain_data()
795 u32 size_to_skip = req->assoclen; in cc_aead_chain_data()
832 size_for_map = req->assoclen + req->cryptlen; in cc_aead_chain_data()
994 &sg_data, areq_ctx->assoclen); in cc_map_aead_request()
[all …]
/linux/include/crypto/
A Daead.h90 unsigned int assoclen; member
523 unsigned int assoclen) in aead_request_set_ad() argument
525 req->assoclen = assoclen; in aead_request_set_ad()
A Dgcm.h51 static inline int crypto_ipsec_check_assoclen(unsigned int assoclen) in crypto_ipsec_check_assoclen() argument
53 switch (assoclen) { in crypto_ipsec_check_assoclen()
/linux/drivers/crypto/keembay/
A Dkeembay-ocs-aes-core.c656 aead_request_set_ad(subreq, req->assoclen); in kmb_ocs_aead_common()
734 req->assoclen + req->cryptlen); in kmb_ocs_aead_dma_prepare()
754 dst_size = req->assoclen + out_size; in kmb_ocs_aead_dma_prepare()
762 tag_size, req->assoclen + in_size); in kmb_ocs_aead_dma_prepare()
805 &rctx->aad_dst_dll, req->assoclen, in kmb_ocs_aead_dma_prepare()
813 out_size, req->assoclen); in kmb_ocs_aead_dma_prepare()
839 req->assoclen, 0); in kmb_ocs_aead_dma_prepare()
845 req->assoclen); in kmb_ocs_aead_dma_prepare()
865 req->assoclen, 0); in kmb_ocs_aead_dma_prepare()
873 req->assoclen); in kmb_ocs_aead_dma_prepare()
[all …]
/linux/net/mac802154/
A Dllsec.c654 int authlen, assoclen, datalen, rc; in llsec_do_encrypt_auth() local
665 assoclen = skb->mac_len; in llsec_do_encrypt_auth()
672 sg_init_one(&sg, skb_mac_header(skb), assoclen + datalen + authlen); in llsec_do_encrypt_auth()
675 assoclen += datalen; in llsec_do_encrypt_auth()
681 aead_request_set_ad(req, assoclen); in llsec_do_encrypt_auth()
860 int authlen, datalen, assoclen, rc; in llsec_do_decrypt_auth() local
871 assoclen = skb->mac_len; in llsec_do_decrypt_auth()
876 sg_init_one(&sg, skb_mac_header(skb), assoclen + datalen); in llsec_do_decrypt_auth()
879 assoclen += datalen - authlen; in llsec_do_decrypt_auth()
885 aead_request_set_ad(req, assoclen); in llsec_do_decrypt_auth()

Completed in 93 milliseconds

123