| /OK3568_Linux_fs/kernel/drivers/net/wireless/ralink/rt2x00/ |
| H A D | rt2x00crypto.c | 54 txdesc->iv_len = hw_key->iv_len; in rt2x00crypto_create_tx_descriptor() 81 overhead += key->iv_len; in rt2x00crypto_tx_overhead() 95 if (unlikely(!txdesc->iv_len)) in rt2x00crypto_tx_copy_iv() 99 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len); in rt2x00crypto_tx_copy_iv() 106 if (unlikely(!txdesc->iv_len)) in rt2x00crypto_tx_remove_iv() 110 memcpy(skbdesc->iv, skb->data + txdesc->iv_offset, txdesc->iv_len); in rt2x00crypto_tx_remove_iv() 113 memmove(skb->data + txdesc->iv_len, skb->data, txdesc->iv_offset); in rt2x00crypto_tx_remove_iv() 116 skb_pull(skb, txdesc->iv_len); in rt2x00crypto_tx_remove_iv() 117 txdesc->length -= txdesc->iv_len; in rt2x00crypto_tx_remove_iv() 126 const unsigned int iv_len = in rt2x00crypto_tx_insert_iv() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/rtl8188eu/os_dep/ |
| H A D | mon.c | 20 static void unprotect_frame(struct sk_buff *skb, int iv_len, int icv_len) in unprotect_frame() argument 28 if (skb->len < hdr_len + iv_len + icv_len) in unprotect_frame() 35 memmove(skb->data + iv_len, skb->data, hdr_len); in unprotect_frame() 36 skb_pull(skb, iv_len); in unprotect_frame() 41 int data_len, int iv_len, int icv_len) in mon_recv_decrypted() argument 54 unprotect_frame(skb, iv_len, icv_len); in mon_recv_decrypted() 77 int iv_len, icv_len; in rtl88eu_mon_recv_hook() local 91 SET_ICE_IV_LEN(iv_len, icv_len, attr->encrypt); in rtl88eu_mon_recv_hook() 94 mon_recv_decrypted(dev, data, data_len, iv_len, icv_len); in rtl88eu_mon_recv_hook() 124 mon_recv_decrypted(dev, data, frag_len, attr->iv_len, 0); in rtl88eu_mon_xmit_hook() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/bcm/ |
| H A D | spu.c | 27 unsigned int iv_len; in spum_dump_msg_hdr() local 264 iv_len = sctx_pl_len - in spum_dump_msg_hdr() 267 packet_log(" IV Length:%u Bytes\n", iv_len); in spum_dump_msg_hdr() 268 packet_dump(" IV: ", ptr, iv_len); in spum_dump_msg_hdr() 269 ptr += iv_len; in spum_dump_msg_hdr() 488 unsigned int assoc_len, unsigned int iv_len, in spum_assoc_resp_len() argument 525 u8 spum_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len) in spum_aead_ivlen() argument 612 aead_parms->iv_len + aead_parms->aad_pad_len; in spum_create_request() 616 aead_parms->iv_len, in spum_create_request() 651 flow_log(" iv: %d\n", cipher_parms->iv_len); in spum_create_request() [all …]
|
| H A D | spu2.c | 374 u8 iv_len; in spu2_dump_fmd_ctrl1() local 417 iv_len = (ctrl1 & SPU2_IV_LEN) >> SPU2_IV_LEN_SHIFT; in spu2_dump_fmd_ctrl1() 418 packet_log(" Input IV len %u bytes\n", iv_len); in spu2_dump_fmd_ctrl1() 870 unsigned int assoc_len, unsigned int iv_len, in spu2_assoc_resp_len() argument 877 resp_len += iv_len; in spu2_assoc_resp_len() 892 u8 spu2_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len) in spu2_aead_ivlen() argument 965 aead_parms->aad_pad_len + aead_parms->iv_len; in spu2_create_request() 970 aead_parms->iv_len, in spu2_create_request() 1002 flow_log(" iv: %d\n", cipher_parms->iv_len); in spu2_create_request() 1003 flow_dump(" iv: ", cipher_parms->iv_buf, cipher_parms->iv_len); in spu2_create_request() [all …]
|
| /OK3568_Linux_fs/external/security/librkcrypto/test/ |
| H A D | test_cipher.c | 23 uint32_t iv_len; member 37 .iv_len = DES_BLOCK_SIZE, 50 .iv_len = DES_BLOCK_SIZE, 66 .iv_len = AES_BLOCK_SIZE, 82 .iv_len = SM4_BLOCK_SIZE, 96 uint32_t algo = 0, mode = 0, key_len, iv_len, operation; in test_cipher_item_virt() local 131 iv_len = item->iv_len; in test_cipher_item_virt() 149 test_get_rng(cipher_cfg.iv, iv_len); in test_cipher_item_virt() 150 memcpy(iv_tmp, cipher_cfg.iv, iv_len); in test_cipher_item_virt() 251 uint32_t algo = 0, mode = 0, key_len = 0, iv_len, operation; in test_cipher_item_fd() local [all …]
|
| H A D | test_ae.c | 47 uint32_t algo = 0, mode = 0, key_len, iv_len, data_len, aad_len, operation; in test_ae_item_virt() local 72 iv_len = 12; in test_ae_item_virt() 109 ae_cfg.iv_len = iv_len; in test_ae_item_virt() 114 test_get_rng(ae_cfg.iv, iv_len); in test_ae_item_virt() 116 memcpy(iv_tmp, ae_cfg.iv, iv_len); in test_ae_item_virt() 154 ae_cfg.key, ae_cfg.key_len, iv_tmp, iv_len, in test_ae_item_virt() 183 memcpy(ae_cfg.iv, iv_tmp, iv_len); in test_ae_item_virt() 264 uint32_t algo = 0, mode = 0, key_len, iv_len, data_len, aad_len, operation; in test_ae_item_fd() local 295 iv_len = 12; in test_ae_item_fd() 326 ae_cfg.iv_len = iv_len; in test_ae_item_fd() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/core/crypto/ |
| H A D | aes-gcm.c | 191 static void aes_gcm_prepare_j0(const u8 *iv, size_t iv_len, const u8 *H, u8 *J0) in aes_gcm_prepare_j0() argument 195 if (iv_len == 12) { in aes_gcm_prepare_j0() 197 os_memcpy(J0, iv, iv_len); in aes_gcm_prepare_j0() 198 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len); in aes_gcm_prepare_j0() 206 ghash(H, iv, iv_len, J0); in aes_gcm_prepare_j0() 208 WPA_PUT_BE64(len_buf + 8, iv_len * 8); in aes_gcm_prepare_j0() 253 int aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ae() argument 266 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ae() 287 int aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ad() argument 300 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ad() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/core/crypto/ |
| H A D | aes-gcm.c | 191 static void aes_gcm_prepare_j0(const u8 *iv, size_t iv_len, const u8 *H, u8 *J0) in aes_gcm_prepare_j0() argument 195 if (iv_len == 12) { in aes_gcm_prepare_j0() 197 os_memcpy(J0, iv, iv_len); in aes_gcm_prepare_j0() 198 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len); in aes_gcm_prepare_j0() 206 ghash(H, iv, iv_len, J0); in aes_gcm_prepare_j0() 208 WPA_PUT_BE64(len_buf + 8, iv_len * 8); in aes_gcm_prepare_j0() 253 int aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ae() argument 266 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ae() 287 int aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ad() argument 300 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ad() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/core/crypto/ |
| H A D | aes-gcm.c | 192 static void aes_gcm_prepare_j0(const u8 *iv, size_t iv_len, const u8 *H, u8 *J0) in aes_gcm_prepare_j0() argument 196 if (iv_len == 12) { in aes_gcm_prepare_j0() 198 os_memcpy(J0, iv, iv_len); in aes_gcm_prepare_j0() 199 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len); in aes_gcm_prepare_j0() 207 ghash(H, iv, iv_len, J0); in aes_gcm_prepare_j0() 209 WPA_PUT_BE64(len_buf + 8, iv_len * 8); in aes_gcm_prepare_j0() 254 int aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ae() argument 267 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ae() 288 int aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ad() argument 301 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ad() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/core/crypto/ |
| H A D | aes-gcm.c | 192 static void aes_gcm_prepare_j0(const u8 *iv, size_t iv_len, const u8 *H, u8 *J0) in aes_gcm_prepare_j0() argument 196 if (iv_len == 12) { in aes_gcm_prepare_j0() 198 os_memcpy(J0, iv, iv_len); in aes_gcm_prepare_j0() 199 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len); in aes_gcm_prepare_j0() 207 ghash(H, iv, iv_len, J0); in aes_gcm_prepare_j0() 209 WPA_PUT_BE64(len_buf + 8, iv_len * 8); in aes_gcm_prepare_j0() 254 int aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ae() argument 267 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ae() 288 int aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ad() argument 301 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ad() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/core/crypto/ |
| H A D | aes-gcm.c | 191 static void aes_gcm_prepare_j0(const u8 *iv, size_t iv_len, const u8 *H, u8 *J0) in aes_gcm_prepare_j0() argument 195 if (iv_len == 12) { in aes_gcm_prepare_j0() 197 os_memcpy(J0, iv, iv_len); in aes_gcm_prepare_j0() 198 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len); in aes_gcm_prepare_j0() 206 ghash(H, iv, iv_len, J0); in aes_gcm_prepare_j0() 208 WPA_PUT_BE64(len_buf + 8, iv_len * 8); in aes_gcm_prepare_j0() 253 int aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ae() argument 266 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ae() 287 int aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ad() argument 300 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ad() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/core/crypto/ |
| H A D | aes-gcm.c | 191 static void aes_gcm_prepare_j0(const u8 *iv, size_t iv_len, const u8 *H, u8 *J0) in aes_gcm_prepare_j0() argument 195 if (iv_len == 12) { in aes_gcm_prepare_j0() 197 os_memcpy(J0, iv, iv_len); in aes_gcm_prepare_j0() 198 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len); in aes_gcm_prepare_j0() 206 ghash(H, iv, iv_len, J0); in aes_gcm_prepare_j0() 208 WPA_PUT_BE64(len_buf + 8, iv_len * 8); in aes_gcm_prepare_j0() 253 int aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ae() argument 266 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ae() 287 int aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ad() argument 300 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ad() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/core/crypto/ |
| H A D | aes-gcm.c | 191 static void aes_gcm_prepare_j0(const u8 *iv, size_t iv_len, const u8 *H, u8 *J0) in aes_gcm_prepare_j0() argument 195 if (iv_len == 12) { in aes_gcm_prepare_j0() 197 os_memcpy(J0, iv, iv_len); in aes_gcm_prepare_j0() 198 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len); in aes_gcm_prepare_j0() 206 ghash(H, iv, iv_len, J0); in aes_gcm_prepare_j0() 208 WPA_PUT_BE64(len_buf + 8, iv_len * 8); in aes_gcm_prepare_j0() 253 int aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ae() argument 266 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ae() 287 int aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ad() argument 300 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ad() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/core/crypto/ |
| H A D | aes-gcm.c | 191 static void aes_gcm_prepare_j0(const u8 *iv, size_t iv_len, const u8 *H, u8 *J0) in aes_gcm_prepare_j0() argument 195 if (iv_len == 12) { in aes_gcm_prepare_j0() 197 os_memcpy(J0, iv, iv_len); in aes_gcm_prepare_j0() 198 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len); in aes_gcm_prepare_j0() 206 ghash(H, iv, iv_len, J0); in aes_gcm_prepare_j0() 208 WPA_PUT_BE64(len_buf + 8, iv_len * 8); in aes_gcm_prepare_j0() 253 int aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ae() argument 266 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ae() 287 int aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ad() argument 300 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ad() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/core/crypto/ |
| H A D | aes-gcm.c | 191 static void aes_gcm_prepare_j0(const u8 *iv, size_t iv_len, const u8 *H, u8 *J0) in aes_gcm_prepare_j0() argument 195 if (iv_len == 12) { in aes_gcm_prepare_j0() 197 os_memcpy(J0, iv, iv_len); in aes_gcm_prepare_j0() 198 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len); in aes_gcm_prepare_j0() 206 ghash(H, iv, iv_len, J0); in aes_gcm_prepare_j0() 208 WPA_PUT_BE64(len_buf + 8, iv_len * 8); in aes_gcm_prepare_j0() 253 int aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ae() argument 266 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ae() 287 int aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ad() argument 300 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ad() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/core/crypto/ |
| H A D | aes-gcm.c | 191 static void aes_gcm_prepare_j0(const u8 *iv, size_t iv_len, const u8 *H, u8 *J0) in aes_gcm_prepare_j0() argument 195 if (iv_len == 12) { in aes_gcm_prepare_j0() 197 os_memcpy(J0, iv, iv_len); in aes_gcm_prepare_j0() 198 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len); in aes_gcm_prepare_j0() 206 ghash(H, iv, iv_len, J0); in aes_gcm_prepare_j0() 208 WPA_PUT_BE64(len_buf + 8, iv_len * 8); in aes_gcm_prepare_j0() 253 int aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ae() argument 266 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ae() 287 int aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, in aes_gcm_ad() argument 300 aes_gcm_prepare_j0(iv, iv_len, H, J0); in aes_gcm_ad() [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/mbedtls/ |
| H A D | ccm.h | 161 const unsigned char *iv, size_t iv_len, 209 const unsigned char *iv, size_t iv_len, 246 const unsigned char *iv, size_t iv_len, 291 const unsigned char *iv, size_t iv_len,
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/mbedtls/ |
| H A D | ccm.h | 161 const unsigned char *iv, size_t iv_len, 209 const unsigned char *iv, size_t iv_len, 246 const unsigned char *iv, size_t iv_len, 291 const unsigned char *iv, size_t iv_len,
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/mbedtls/ |
| H A D | ccm.h | 161 const unsigned char *iv, size_t iv_len, 209 const unsigned char *iv, size_t iv_len, 246 const unsigned char *iv, size_t iv_len, 291 const unsigned char *iv, size_t iv_len,
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/mbedtls/ |
| H A D | ccm.h | 161 const unsigned char *iv, size_t iv_len, 209 const unsigned char *iv, size_t iv_len, 246 const unsigned char *iv, size_t iv_len, 291 const unsigned char *iv, size_t iv_len,
|
| /OK3568_Linux_fs/kernel/drivers/staging/rtl8188eu/include/ |
| H A D | rtw_security.h | 184 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt) \ argument 189 iv_len = 4; \ 193 iv_len = 8; \ 197 iv_len = 8; \ 201 iv_len = 18; \ 205 iv_len = 0; \
|
| /OK3568_Linux_fs/u-boot/drivers/crypto/rockchip/ |
| H A D | crypto_v2.c | 189 static inline void set_iv_reg(u32 chn, const u8 *iv, u32 iv_len) in set_iv_reg() argument 198 if (!iv || iv_len == 0) in set_iv_reg() 201 write_regs(base_iv, iv, iv_len); in set_iv_reg() 203 crypto_write(iv_len, CRYPTO_CH0_IV_LEN_0 + 4 * chn); in set_iv_reg() 206 static inline void get_iv_reg(u32 chn, u8 *iv, u32 iv_len) in get_iv_reg() argument 212 read_regs(base_iv, iv, iv_len); in get_iv_reg() 861 u32 key_len, const u8 *iv, u32 iv_len, in hw_cipher_init() argument 919 ccm128_set_iv_reg(chn, iv, iv_len); in hw_cipher_init() 921 set_iv_reg(chn, iv, iv_len); in hw_cipher_init() 1116 const u8 *iv, u32 iv_len, u32 mode, bool enc) in hw_aes_init() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/include/ |
| H A D | rtw_security.h | 299 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ argument 304 iv_len = 4;\ 308 iv_len = 8;\ 312 iv_len = 8;\ 317 iv_len = 8;\ 321 iv_len = 8;\ 325 iv_len = 18;\ 329 iv_len = 0;\
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/include/ |
| H A D | rtw_security.h | 298 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ argument 303 iv_len = 4;\ 307 iv_len = 8;\ 311 iv_len = 8;\ 316 iv_len = 8;\ 320 iv_len = 8;\ 324 iv_len = 18;\ 328 iv_len = 0;\
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/include/ |
| H A D | rtw_security.h | 301 #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ argument 306 iv_len = 4;\ 310 iv_len = 8;\ 314 iv_len = 8;\ 319 iv_len = 8;\ 323 iv_len = 8;\ 327 iv_len = 18;\ 331 iv_len = 0;\
|