Home
last modified time | relevance | path

Searched refs:crypt_len (Results 1 - 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/net/mac80211/
H A Dfils_aead.c153 size_t crypt_len; in aes_siv_decrypt() local
158 crypt_len = iv_c_len - AES_BLOCK_SIZE; in aes_siv_decrypt()
161 len[num_elem] = crypt_len; in aes_siv_decrypt()
191 sg_init_one(src, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt()
192 sg_init_one(dst, out, crypt_len); in aes_siv_decrypt()
193 skcipher_request_set_crypt(req, src, dst, crypt_len, iv); in aes_siv_decrypt()
224 size_t crypt_len; in fils_encrypt_assoc_req() local
261 crypt_len = skb->data + skb->len - encr; in fils_encrypt_assoc_req()
264 encr, crypt_len, 5, addr, len, encr); in fils_encrypt_assoc_req()
276 size_t crypt_len; in fils_decrypt_assoc_resp() local
[all...]
/kernel/linux/linux-6.6/net/mac80211/
H A Dfils_aead.c153 size_t crypt_len; in aes_siv_decrypt() local
158 crypt_len = iv_c_len - AES_BLOCK_SIZE; in aes_siv_decrypt()
161 len[num_elem] = crypt_len; in aes_siv_decrypt()
191 sg_init_one(src, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt()
192 sg_init_one(dst, out, crypt_len); in aes_siv_decrypt()
193 skcipher_request_set_crypt(req, src, dst, crypt_len, iv); in aes_siv_decrypt()
225 size_t crypt_len; in fils_encrypt_assoc_req() local
262 crypt_len = skb->data + skb->len - encr; in fils_encrypt_assoc_req()
265 encr, crypt_len, 5, addr, len, encr); in fils_encrypt_assoc_req()
278 size_t crypt_len; in fils_decrypt_assoc_resp() local
[all...]
/kernel/linux/linux-6.6/lib/crypto/
H A Daesgcm.c126 * @crypt_len: The size in bytes of the plaintext and ciphertext.
136 int crypt_len, const u8 *assoc, int assoc_len, in aesgcm_encrypt()
143 aesgcm_crypt(ctx, dst, src, crypt_len, ctr); in aesgcm_encrypt()
144 aesgcm_mac(ctx, dst, crypt_len, assoc, assoc_len, ctr, authtag); in aesgcm_encrypt()
154 * @crypt_len: The size in bytes of the plaintext and ciphertext.
166 const u8 *src, int crypt_len, const u8 *assoc, in aesgcm_decrypt()
175 aesgcm_mac(ctx, src, crypt_len, assoc, assoc_len, ctr, tagbuf); in aesgcm_decrypt()
180 aesgcm_crypt(ctx, dst, src, crypt_len, ctr); in aesgcm_decrypt()
135 aesgcm_encrypt(const struct aesgcm_ctx *ctx, u8 *dst, const u8 *src, int crypt_len, const u8 *assoc, int assoc_len, const u8 iv[GCM_AES_IV_SIZE], u8 *authtag) aesgcm_encrypt() argument
165 aesgcm_decrypt(const struct aesgcm_ctx *ctx, u8 *dst, const u8 *src, int crypt_len, const u8 *assoc, int assoc_len, const u8 iv[GCM_AES_IV_SIZE], const u8 *authtag) aesgcm_decrypt() argument
/kernel/linux/linux-6.6/include/crypto/
H A Dgcm.h77 int crypt_len, const u8 *assoc, int assoc_len,
81 const u8 *src, int crypt_len, const u8 *assoc,
/kernel/linux/linux-5.10/net/ceph/
H A Dcrypto.c226 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt() local
229 WARN_ON(crypt_len > buf_len); in ceph_aes_crypt()
232 ret = setup_sgtable(&sgt, &prealloc_sg, buf, crypt_len); in ceph_aes_crypt()
239 skcipher_request_set_crypt(req, sgt.sgl, sgt.sgl, crypt_len, iv); in ceph_aes_crypt()
245 buf, crypt_len, 1); in ceph_aes_crypt()
259 buf, crypt_len, 1); in ceph_aes_crypt()
263 *pout_len = crypt_len; in ceph_aes_crypt()
/kernel/linux/linux-6.6/net/ceph/
H A Dcrypto.c227 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt() local
230 WARN_ON(crypt_len > buf_len); in ceph_aes_crypt()
233 ret = setup_sgtable(&sgt, &prealloc_sg, buf, crypt_len); in ceph_aes_crypt()
240 skcipher_request_set_crypt(req, sgt.sgl, sgt.sgl, crypt_len, iv); in ceph_aes_crypt()
246 buf, crypt_len, 1); in ceph_aes_crypt()
260 buf, crypt_len, 1); in ceph_aes_crypt()
264 *pout_len = crypt_len; in ceph_aes_crypt()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
H A Drx.c102 u8 crypt_len, in iwl_mvm_pass_packet_to_mac80211()
109 * The 'hdrlen' (plus the 8 bytes for the SNAP and the crypt_len, in iwl_mvm_pass_packet_to_mac80211()
132 hdrlen = (len <= skb_tailroom(skb)) ? len : hdrlen + crypt_len + 8; in iwl_mvm_pass_packet_to_mac80211()
200 u8 *crypt_len) in iwl_mvm_set_mac80211_rx_flag()
219 *crypt_len = IEEE80211_CCMP_HDR_LEN; in iwl_mvm_set_mac80211_rx_flag()
228 *crypt_len = IEEE80211_TKIP_IV_LEN; in iwl_mvm_set_mac80211_rx_flag()
238 *crypt_len = IEEE80211_WEP_IV_LEN; in iwl_mvm_set_mac80211_rx_flag()
355 u8 crypt_len = 0; in iwl_mvm_rx_rx_mpdu() local
379 &crypt_len)) { in iwl_mvm_rx_rx_mpdu()
564 crypt_len, rx in iwl_mvm_rx_rx_mpdu()
97 iwl_mvm_pass_packet_to_mac80211(struct iwl_mvm *mvm, struct ieee80211_sta *sta, struct napi_struct *napi, struct sk_buff *skb, struct ieee80211_hdr *hdr, u16 len, u8 crypt_len, struct iwl_rx_cmd_buffer *rxb) iwl_mvm_pass_packet_to_mac80211() argument
196 iwl_mvm_set_mac80211_rx_flag(struct iwl_mvm *mvm, struct ieee80211_hdr *hdr, struct ieee80211_rx_status *stats, u32 rx_pkt_status, u8 *crypt_len) iwl_mvm_set_mac80211_rx_flag() argument
[all...]
H A Drxmq.c173 struct ieee80211_hdr *hdr, u16 len, u8 crypt_len, in iwl_mvm_create_skb()
201 if (WARN_ON(crypt_len > mic_crc_len)) in iwl_mvm_create_skb()
204 mic_crc_len -= crypt_len; in iwl_mvm_create_skb()
226 hdrlen + crypt_len + 8; in iwl_mvm_create_skb()
233 hdrlen += crypt_len; in iwl_mvm_create_skb()
236 "invalid packet lengths (hdrlen=%d, len=%d, crypt_len=%d)\n", in iwl_mvm_create_skb()
237 hdrlen, len, crypt_len)) { in iwl_mvm_create_skb()
243 "invalid packet lengths (hdrlen=%d, len=%d, crypt_len=%d)\n", in iwl_mvm_create_skb()
244 hdrlen, len, crypt_len); in iwl_mvm_create_skb()
361 u32 pkt_flags, int queue, u8 *crypt_len) in iwl_mvm_rx_crypto()
172 iwl_mvm_create_skb(struct iwl_mvm *mvm, struct sk_buff *skb, struct ieee80211_hdr *hdr, u16 len, u8 crypt_len, struct iwl_rx_cmd_buffer *rxb) iwl_mvm_create_skb() argument
358 iwl_mvm_rx_crypto(struct iwl_mvm *mvm, struct ieee80211_hdr *hdr, struct ieee80211_rx_status *stats, u16 phy_info, struct iwl_rx_mpdu_desc *desc, u32 pkt_flags, int queue, u8 *crypt_len) iwl_mvm_rx_crypto() argument
1639 u8 crypt_len = 0, channel, energy_a, energy_b; iwl_mvm_rx_mpdu_mq() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/mvm/
H A Drx.c50 u8 crypt_len, in iwl_mvm_pass_packet_to_mac80211()
57 * The 'hdrlen' (plus the 8 bytes for the SNAP and the crypt_len, in iwl_mvm_pass_packet_to_mac80211()
80 hdrlen = (len <= skb_tailroom(skb)) ? len : hdrlen + crypt_len + 8; in iwl_mvm_pass_packet_to_mac80211()
143 u8 *crypt_len) in iwl_mvm_set_mac80211_rx_flag()
162 *crypt_len = IEEE80211_CCMP_HDR_LEN; in iwl_mvm_set_mac80211_rx_flag()
171 *crypt_len = IEEE80211_TKIP_IV_LEN; in iwl_mvm_set_mac80211_rx_flag()
181 *crypt_len = IEEE80211_WEP_IV_LEN; in iwl_mvm_set_mac80211_rx_flag()
301 u8 crypt_len = 0; in iwl_mvm_rx_rx_mpdu() local
405 &crypt_len)) { in iwl_mvm_rx_rx_mpdu()
541 crypt_len, rx in iwl_mvm_rx_rx_mpdu()
45 iwl_mvm_pass_packet_to_mac80211(struct iwl_mvm *mvm, struct ieee80211_sta *sta, struct napi_struct *napi, struct sk_buff *skb, struct ieee80211_hdr *hdr, u16 len, u8 crypt_len, struct iwl_rx_cmd_buffer *rxb) iwl_mvm_pass_packet_to_mac80211() argument
139 iwl_mvm_set_mac80211_rx_flag(struct iwl_mvm *mvm, struct ieee80211_hdr *hdr, struct ieee80211_rx_status *stats, u32 rx_pkt_status, u8 *crypt_len) iwl_mvm_set_mac80211_rx_flag() argument
[all...]
H A Drxmq.c92 struct ieee80211_hdr *hdr, u16 len, u8 crypt_len, in iwl_mvm_create_skb()
129 hdrlen + crypt_len + 8; in iwl_mvm_create_skb()
136 hdrlen += crypt_len; in iwl_mvm_create_skb()
370 u32 pkt_flags, int queue, u8 *crypt_len) in iwl_mvm_rx_crypto()
406 *crypt_len = IEEE80211_CCMP_HDR_LEN; in iwl_mvm_rx_crypto()
419 *crypt_len = IEEE80211_TKIP_IV_LEN; in iwl_mvm_rx_crypto()
428 *crypt_len = IEEE80211_WEP_IV_LEN; in iwl_mvm_rx_crypto()
2333 u8 crypt_len = 0; in iwl_mvm_rx_mpdu_mq() local
2500 &crypt_len)) { in iwl_mvm_rx_mpdu_mq()
2617 if (iwl_mvm_create_skb(mvm, skb, hdr, len, crypt_len, rx in iwl_mvm_rx_mpdu_mq()
91 iwl_mvm_create_skb(struct iwl_mvm *mvm, struct sk_buff *skb, struct ieee80211_hdr *hdr, u16 len, u8 crypt_len, struct iwl_rx_cmd_buffer *rxb) iwl_mvm_create_skb() argument
366 iwl_mvm_rx_crypto(struct iwl_mvm *mvm, struct ieee80211_sta *sta, struct ieee80211_hdr *hdr, struct ieee80211_rx_status *stats, u16 phy_info, struct iwl_rx_mpdu_desc *desc, u32 pkt_flags, int queue, u8 *crypt_len) iwl_mvm_rx_crypto() argument
[all...]
/kernel/linux/linux-5.10/drivers/crypto/
H A Dixp4xx_crypto.c128 u16 crypt_len; /* Cryption data length */ member
132 u16 crypt_len; /* Cryption data length */ member
737 crypt->crypt_len = AES_BLOCK128; in gen_rev_aes_key()
917 crypt->crypt_len = nbytes; in ablk_perform()
1036 crypt->crypt_len = eff_cryptlen; in aead_perform()
/kernel/linux/linux-6.6/drivers/crypto/intel/ixp4xx/
H A Dixp4xx_crypto.c128 u16 crypt_len; /* Cryption data length */ member
132 u16 crypt_len; /* Cryption data length */ member
797 crypt->crypt_len = AES_BLOCK128; in gen_rev_aes_key()
1010 crypt->crypt_len = nbytes; in ablk_perform()
1130 crypt->crypt_len = eff_cryptlen; in aead_perform()
/kernel/linux/linux-6.6/fs/smb/server/
H A Dauth.c1116 unsigned int crypt_len = le32_to_cpu(tr_hdr->OriginalMessageSize); in ksmbd_crypt_message() local
1168 crypt_len += SMB2_SIGNATURE_SIZE; in ksmbd_crypt_message()
1193 aead_request_set_crypt(req, sg, sg, crypt_len, iv); in ksmbd_crypt_message()
/kernel/linux/linux-5.10/drivers/md/
H A Ddm-integrity.c3668 unsigned crypt_len = roundup(ivsize, blocksize); in create_journal() local
3684 crypt_data = kmalloc(crypt_len, GFP_KERNEL); in create_journal()
3717 memset(crypt_data, 0x00, crypt_len); in create_journal()
3718 memcpy(crypt_data, &section_le, min((size_t)crypt_len, sizeof(section_le))); in create_journal()
3720 sg_init_one(&sg, crypt_data, crypt_len); in create_journal()
3721 skcipher_request_set_crypt(req, &sg, &sg, crypt_len, crypt_iv); in create_journal()
/kernel/linux/linux-6.6/drivers/md/
H A Ddm-integrity.c3960 unsigned int crypt_len = roundup(ivsize, blocksize); in create_journal() local
3976 crypt_data = kmalloc(crypt_len, GFP_KERNEL); in create_journal()
4009 memset(crypt_data, 0x00, crypt_len); in create_journal()
4010 memcpy(crypt_data, &section_le, min_t(size_t, crypt_len, sizeof(section_le))); in create_journal()
4012 sg_init_one(&sg, crypt_data, crypt_len); in create_journal()
4013 skcipher_request_set_crypt(req, &sg, &sg, crypt_len, crypt_iv); in create_journal()
/kernel/linux/linux-5.10/fs/cifs/
H A Dsmb2ops.c4298 unsigned int crypt_len = le32_to_cpu(tr_hdr->OriginalMessageSize); in crypt_message() local
4340 crypt_len += SMB2_SIGNATURE_SIZE; in crypt_message()
4352 aead_request_set_crypt(req, sg, sg, crypt_len, iv); in crypt_message()
/kernel/linux/linux-6.6/fs/smb/client/
H A Dsmb2ops.c4368 unsigned int crypt_len = le32_to_cpu(tr_hdr->OriginalMessageSize); in crypt_message() local
4411 crypt_len += SMB2_SIGNATURE_SIZE; in crypt_message()
4423 aead_request_set_crypt(req, sg, sg, crypt_len, iv); in crypt_message()

Completed in 72 milliseconds