| /src/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zio_crypt.c | 1410 uint_t nr_src, nr_dst, crypt_len; in zio_crypt_init_uios_zil() local 1523 crypt_len = o - sizeof (lr_t); in zio_crypt_init_uios_zil() 1525 src_iovecs[nr_iovecs].iov_len = crypt_len; in zio_crypt_init_uios_zil() 1527 dst_iovecs[nr_iovecs].iov_len = crypt_len; in zio_crypt_init_uios_zil() 1535 total_len += crypt_len; in zio_crypt_init_uios_zil() 1538 crypt_len = lr_len - sizeof (lr_write_t); in zio_crypt_init_uios_zil() 1541 src_iovecs[nr_iovecs].iov_len = crypt_len; in zio_crypt_init_uios_zil() 1544 dst_iovecs[nr_iovecs].iov_len = crypt_len; in zio_crypt_init_uios_zil() 1546 total_len += crypt_len; in zio_crypt_init_uios_zil() 1550 crypt_len = o - sizeof (lr_t); in zio_crypt_init_uios_zil() [all …]
|
| /src/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | zio_crypt.c | 1255 uint_t crypt_len, nr_iovecs, vec; in zio_crypt_init_uios_zil() local 1347 crypt_len = o - sizeof (lr_t); in zio_crypt_init_uios_zil() 1349 dst_iovecs[vec].iov_len = crypt_len; in zio_crypt_init_uios_zil() 1357 total_len += crypt_len; in zio_crypt_init_uios_zil() 1360 crypt_len = lr_len - sizeof (lr_write_t); in zio_crypt_init_uios_zil() 1363 dst_iovecs[vec].iov_len = crypt_len; in zio_crypt_init_uios_zil() 1365 total_len += crypt_len; in zio_crypt_init_uios_zil() 1369 crypt_len = o - sizeof (lr_t); in zio_crypt_init_uios_zil() 1371 dst_iovecs[vec].iov_len = crypt_len; in zio_crypt_init_uios_zil() 1379 total_len += crypt_len; in zio_crypt_init_uios_zil() [all …]
|
| /src/contrib/wpa/src/crypto/ |
| H A D | aes-siv.c | 170 size_t crypt_len; in aes_siv_decrypt() local 179 crypt_len = iv_c_len - AES_BLOCK_SIZE; in aes_siv_decrypt() 189 _len[num_elem] = crypt_len; in aes_siv_decrypt() 192 os_memcpy(out, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt() 197 ret = aes_ctr_encrypt(k2, key_len, iv, out, crypt_len); in aes_siv_decrypt()
|
| H A D | aes-gcm.c | 230 const u8 *crypt, size_t crypt_len, u8 *S) in aes_gcm_ghash() argument 242 ghash(H, crypt, crypt_len, S); in aes_gcm_ghash() 244 WPA_PUT_BE64(len_buf + 8, crypt_len * 8); in aes_gcm_ghash() 289 const u8 *crypt, size_t crypt_len, in aes_gcm_ad() argument 304 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain); in aes_gcm_ad() 306 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
|
| H A D | aes-ccm.c | 179 size_t M, const u8 *crypt, size_t crypt_len, in aes_ccm_ad() argument 199 aes_ccm_encr(aes, L, crypt, crypt_len, plain, a); in aes_ccm_ad() 201 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, crypt_len, x); in aes_ccm_ad() 202 aes_ccm_auth(aes, plain, crypt_len, x); in aes_ccm_ad()
|
| H A D | crypto_internal-rsa.c | 112 const u8 *crypt, size_t crypt_len, in crypto_public_key_decrypt_pkcs1() argument 116 crypt, crypt_len, plain, plain_len); in crypto_public_key_decrypt_pkcs1()
|
| H A D | aes_wrap.h | 59 const u8 *crypt, size_t crypt_len, 69 size_t M, const u8 *crypt, size_t crypt_len,
|
| H A D | crypto_libtomcrypt.c | 616 const u8 *crypt, size_t crypt_len, in crypto_public_key_decrypt_pkcs1() argument 624 res = rsa_exptmod(crypt, crypt_len, plain, &len, PK_PUBLIC, in crypto_public_key_decrypt_pkcs1()
|
| H A D | crypto.h | 419 struct crypto_public_key *key, const u8 *crypt, size_t crypt_len,
|
| /src/sys/net80211/ |
| H A D | ieee80211_crypto_gcm.c | 287 const uint8_t *crypt, size_t crypt_len, uint8_t *S) in aes_gcm_ghash() argument 299 ghash(H, crypt, crypt_len, S); in aes_gcm_ghash() 301 WPA_PUT_BE64(len_buf + 8, crypt_len * 8); in aes_gcm_ghash() 339 const uint8_t *crypt, size_t crypt_len, in ieee80211_crypto_aes_gcm_ad() argument 351 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain); in ieee80211_crypto_aes_gcm_ad() 353 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in ieee80211_crypto_aes_gcm_ad()
|
| H A D | ieee80211_crypto_gcm.h | 52 size_t iv_len, const uint8_t *crypt, size_t crypt_len,
|
| /src/contrib/wpa/wpa_supplicant/ |
| H A D | mesh_rsn.c | 657 size_t crypt_len; in mesh_rsn_process_ampe() local 691 crypt_len = elems_len - (elems->mic - start); in mesh_rsn_process_ampe() 692 if (crypt_len < 2 + AES_BLOCK_SIZE) { in mesh_rsn_process_ampe() 698 crypt = os_zalloc(crypt_len); in mesh_rsn_process_ampe() 705 os_memcpy(crypt, elems->mic, crypt_len); in mesh_rsn_process_ampe() 707 if (aes_siv_decrypt(sta->aek, sizeof(sta->aek), crypt, crypt_len, 3, in mesh_rsn_process_ampe() 714 crypt_len -= AES_BLOCK_SIZE; in mesh_rsn_process_ampe() 716 ampe_buf, crypt_len); in mesh_rsn_process_ampe() 722 (size_t) 2 + ampe_ie_len > crypt_len || in mesh_rsn_process_ampe()
|
| /src/sys/contrib/dev/iwlwifi/mvm/ |
| H A D | rx.c | 50 u8 crypt_len, in iwl_mvm_pass_packet_to_mac80211() argument 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() argument 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() 306 u8 crypt_len = 0; in iwl_mvm_rx_rx_mpdu() local 410 &crypt_len)) { in iwl_mvm_rx_rx_mpdu() 550 crypt_len, rxb); in iwl_mvm_rx_rx_mpdu()
|
| H A D | rxmq.c | 95 struct ieee80211_hdr *hdr, u16 len, u8 crypt_len, in iwl_mvm_create_skb() argument 132 hdrlen + crypt_len + 8; in iwl_mvm_create_skb() 139 hdrlen += crypt_len; in iwl_mvm_create_skb() 421 u32 pkt_flags, int queue, u8 *crypt_len) in iwl_mvm_rx_crypto() argument 468 *crypt_len = IEEE80211_CCMP_HDR_LEN; in iwl_mvm_rx_crypto() 481 *crypt_len = IEEE80211_TKIP_IV_LEN; in iwl_mvm_rx_crypto() 490 *crypt_len = IEEE80211_WEP_IV_LEN; in iwl_mvm_rx_crypto() 2126 u8 crypt_len = 0; in iwl_mvm_rx_mpdu_mq() local 2299 &crypt_len)) { in iwl_mvm_rx_mpdu_mq() 2422 if (iwl_mvm_create_skb(mvm, skb, hdr, len, crypt_len, rxb)) { in iwl_mvm_rx_mpdu_mq()
|
| /src/contrib/wpa/src/tls/ |
| H A D | pkcs1.h | 22 const u8 *crypt, size_t crypt_len,
|
| H A D | pkcs1.c | 135 const u8 *crypt, size_t crypt_len, in pkcs1_decrypt_public_key() argument 142 if (crypto_rsa_exptmod(crypt, crypt_len, plain, &len, key, 0) < 0) in pkcs1_decrypt_public_key()
|
| /src/sys/contrib/dev/iwlwifi/mld/ |
| H A D | rx.c | 1414 u8 crypt_len, struct iwl_rx_cmd_buffer *rxb) in iwl_mld_build_rx_skb() argument 1448 headlen = (len <= skb_tailroom(skb)) ? len : hdrlen + crypt_len + 8; in iwl_mld_build_rx_skb() 1455 hdrlen += crypt_len; in iwl_mld_build_rx_skb()
|