Home
last modified time | relevance | path

Searched refs:ivlen (Results 1 – 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/net/ipv6/
Desp6.c574 int ivlen; in esp6_output_tail() local
595 ivlen = crypto_aead_ivsize(aead); in esp6_output_tail()
617 assoclen + ivlen + esp->clen + alen); in esp6_output_tail()
645 assoclen + ivlen + esp->clen + alen); in esp6_output_tail()
655 aead_request_set_crypt(req, sg, dsg, ivlen + esp->clen, iv); in esp6_output_tail()
658 memset(iv, 0, ivlen); in esp6_output_tail()
659 memcpy(iv + ivlen - min(ivlen, 8), (u8 *)&esp->seqno + 8 - min(ivlen, 8), in esp6_output_tail()
660 min(ivlen, 8)); in esp6_output_tail()
931 int ivlen = crypto_aead_ivsize(aead); in esp6_input() local
932 int elen = skb->len - sizeof(struct ip_esp_hdr) - ivlen; in esp6_input()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Desp4.c540 int ivlen; in esp_output_tail() local
561 ivlen = crypto_aead_ivsize(aead); in esp_output_tail()
583 assoclen + ivlen + esp->clen + alen); in esp_output_tail()
611 assoclen + ivlen + esp->clen + alen); in esp_output_tail()
621 aead_request_set_crypt(req, sg, dsg, ivlen + esp->clen, iv); in esp_output_tail()
624 memset(iv, 0, ivlen); in esp_output_tail()
625 memcpy(iv + ivlen - min(ivlen, 8), (u8 *)&esp->seqno + 8 - min(ivlen, 8), in esp_output_tail()
626 min(ivlen, 8)); in esp_output_tail()
890 int ivlen = crypto_aead_ivsize(aead); in esp_input() local
891 int elen = skb->len - sizeof(struct ip_esp_hdr) - ivlen; in esp_input()
[all …]
/kernel/linux/linux-5.10/crypto/
Dalgif_aead.c527 unsigned int ivlen = crypto_aead_ivsize(tfm); in aead_sock_destruct() local
530 sock_kzfree_s(sk, ctx->iv, ivlen); in aead_sock_destruct()
542 unsigned int ivlen = crypto_aead_ivsize(aead); in aead_accept_parent_nokey() local
549 ctx->iv = sock_kmalloc(sk, ivlen, GFP_KERNEL); in aead_accept_parent_nokey()
554 memset(ctx->iv, 0, ivlen); in aead_accept_parent_nokey()
Daf_alg.c466 if (cmsg->cmsg_len < CMSG_LEN(con->iv->ivlen + in af_alg_cmsg_send()
860 if (con.iv && con.iv->ivlen != ivsize) in af_alg_sendmsg()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dif_alg.h17 __u32 ivlen; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dif_alg.h30 __u32 ivlen; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dif_alg.h44 __u32 ivlen; member
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-cipher.c154 rctx->ivlen = ivsize; in sun8i_ce_cipher_prepare()
171 rctx->addr_iv = dma_map_single(ce->dev, rctx->bounce_iv, rctx->ivlen, in sun8i_ce_cipher_prepare()
254 dma_unmap_single(ce->dev, rctx->addr_iv, rctx->ivlen, DMA_TO_DEVICE); in sun8i_ce_cipher_prepare()
319 dma_unmap_single(ce->dev, rctx->addr_iv, rctx->ivlen, DMA_TO_DEVICE); in sun8i_ce_cipher_unprepare()
Dsun8i-ce.h256 unsigned int ivlen; member
/kernel/linux/linux-5.10/drivers/crypto/amcc/
Dcrypto4xx_alg.c70 const unsigned int ivlen, bool decrypt, in crypto4xx_crypt() argument
80 if (ivlen) in crypto4xx_crypt()
81 crypto4xx_memcpy_to_le32(iv, req->iv, ivlen); in crypto4xx_crypt()
84 req->cryptlen, iv, ivlen, decrypt ? ctx->sa_in : ctx->sa_out, in crypto4xx_crypt()
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-core.c69 unsigned int ivlen = rctx->ivlen; in sun8i_ss_run_task() local
108 if (ivlen) { in sun8i_ss_run_task()
113 writel(rctx->t_dst[i - 1].addr + rctx->t_dst[i - 1].len * 4 - ivlen, ss->base + SS_IV_ADR_REG); in sun8i_ss_run_task()
Dsun8i-ss.h194 unsigned int ivlen; member
Dsun8i-ss-cipher.c111 rctx->ivlen = ivsize; in sun8i_ss_setup_ivs()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dd3.c1265 int ivlen = 0, icvlen = 4; /* also FCS */ in iwl_mvm_report_wakeup_reasons() local
1283 ivlen = mvm->gtk_ivlen; in iwl_mvm_report_wakeup_reasons()
1286 ivlen = mvm->ptk_ivlen; in iwl_mvm_report_wakeup_reasons()
1300 pktsize -= ivlen + icvlen; in iwl_mvm_report_wakeup_reasons()
1301 pktdata += ivlen; in iwl_mvm_report_wakeup_reasons()
/kernel/linux/linux-5.10/drivers/crypto/
Dpicoxcell_crypto.c238 const u8 *iv, size_t ivlen, const u8 *hash_key, in spacc_load_ctx() argument
249 ivlen); in spacc_load_ctx()
/kernel/linux/linux-5.10/drivers/crypto/inside-secure/
Dsafexcel_cipher.c111 int ivlen; in safexcel_skcipher_token() local
113 ivlen = safexcel_skcipher_iv(ctx, iv, cdesc); in safexcel_skcipher_token()
114 if (ivlen == 4) { in safexcel_skcipher_token()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0016_linux_drivers_crypto.patch441 + /* payloadlen = input data length - (assoclen + ivlen) */