| /OK3568_Linux_fs/kernel/net/mac80211/ |
| H A D | fils_aead.c | 153 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 …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/ |
| H A D | phl_sec.c | 90 u32 param_len = 0, crypt_len = 0; in _phl_cmd_set_key() local 107 crypt_len = sizeof(struct phl_sec_param_h); in _phl_cmd_set_key() 108 param->crypt = _os_kmem_alloc(drv, crypt_len); in _phl_cmd_set_key() 114 _os_mem_set(drv, param->crypt, 0, crypt_len); in _phl_cmd_set_key() 115 _os_mem_cpy(drv, param->crypt, crypt, crypt_len); in _phl_cmd_set_key() 152 _os_kmem_free(drv, param->crypt, crypt_len); in _phl_cmd_set_key()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/ |
| H A D | phl_sec.c | 90 u32 param_len = 0, crypt_len = 0; in _phl_cmd_set_key() local 107 crypt_len = sizeof(struct phl_sec_param_h); in _phl_cmd_set_key() 108 param->crypt = _os_kmem_alloc(drv, crypt_len); in _phl_cmd_set_key() 114 _os_mem_set(drv, param->crypt, 0, crypt_len); in _phl_cmd_set_key() 115 _os_mem_cpy(drv, param->crypt, crypt, crypt_len); in _phl_cmd_set_key() 152 _os_kmem_free(drv, param->crypt, crypt_len); in _phl_cmd_set_key()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/core/crypto/ |
| H A D | aes-gcm.c | 229 const u8 *crypt, size_t crypt_len, u8 *S) in aes_gcm_ghash() argument 241 ghash(H, crypt, crypt_len, S); in aes_gcm_ghash() 243 WPA_PUT_BE64(len_buf + 8, crypt_len * 8); in aes_gcm_ghash() 288 const u8 *crypt, size_t crypt_len, in aes_gcm_ad() argument 303 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain); in aes_gcm_ad() 305 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
|
| H A D | aes-siv.c | 169 size_t crypt_len; in aes_siv_decrypt() local 178 crypt_len = iv_c_len - AES_BLOCK_SIZE; in aes_siv_decrypt() 188 _len[num_elem] = crypt_len; in aes_siv_decrypt() 191 os_memcpy(out, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt() 196 ret = aes_ctr_encrypt(k2, key_len, iv, out, crypt_len); in aes_siv_decrypt()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/core/crypto/ |
| H A D | aes-gcm.c | 229 const u8 *crypt, size_t crypt_len, u8 *S) in aes_gcm_ghash() argument 241 ghash(H, crypt, crypt_len, S); in aes_gcm_ghash() 243 WPA_PUT_BE64(len_buf + 8, crypt_len * 8); in aes_gcm_ghash() 288 const u8 *crypt, size_t crypt_len, in aes_gcm_ad() argument 303 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain); in aes_gcm_ad() 305 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
|
| H A D | aes-siv.c | 169 size_t crypt_len; in aes_siv_decrypt() local 178 crypt_len = iv_c_len - AES_BLOCK_SIZE; in aes_siv_decrypt() 188 _len[num_elem] = crypt_len; in aes_siv_decrypt() 191 os_memcpy(out, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt() 196 ret = aes_ctr_encrypt(k2, key_len, iv, out, crypt_len); in aes_siv_decrypt()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/core/crypto/ |
| 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-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()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/core/crypto/ |
| 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-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()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/core/crypto/ |
| H A D | aes-gcm.c | 229 const u8 *crypt, size_t crypt_len, u8 *S) in aes_gcm_ghash() argument 241 ghash(H, crypt, crypt_len, S); in aes_gcm_ghash() 243 WPA_PUT_BE64(len_buf + 8, crypt_len * 8); in aes_gcm_ghash() 288 const u8 *crypt, size_t crypt_len, in aes_gcm_ad() argument 303 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain); in aes_gcm_ad() 305 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
|
| H A D | aes-siv.c | 169 size_t crypt_len; in aes_siv_decrypt() local 178 crypt_len = iv_c_len - AES_BLOCK_SIZE; in aes_siv_decrypt() 188 _len[num_elem] = crypt_len; in aes_siv_decrypt() 191 os_memcpy(out, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt() 196 ret = aes_ctr_encrypt(k2, key_len, iv, out, crypt_len); in aes_siv_decrypt()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/core/crypto/ |
| H A D | aes-gcm.c | 229 const u8 *crypt, size_t crypt_len, u8 *S) in aes_gcm_ghash() argument 241 ghash(H, crypt, crypt_len, S); in aes_gcm_ghash() 243 WPA_PUT_BE64(len_buf + 8, crypt_len * 8); in aes_gcm_ghash() 288 const u8 *crypt, size_t crypt_len, in aes_gcm_ad() argument 303 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain); in aes_gcm_ad() 305 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
|
| H A D | aes-siv.c | 169 size_t crypt_len; in aes_siv_decrypt() local 178 crypt_len = iv_c_len - AES_BLOCK_SIZE; in aes_siv_decrypt() 188 _len[num_elem] = crypt_len; in aes_siv_decrypt() 191 os_memcpy(out, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt() 196 ret = aes_ctr_encrypt(k2, key_len, iv, out, crypt_len); in aes_siv_decrypt()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/core/crypto/ |
| H A D | aes-gcm.c | 229 const u8 *crypt, size_t crypt_len, u8 *S) in aes_gcm_ghash() argument 241 ghash(H, crypt, crypt_len, S); in aes_gcm_ghash() 243 WPA_PUT_BE64(len_buf + 8, crypt_len * 8); in aes_gcm_ghash() 288 const u8 *crypt, size_t crypt_len, in aes_gcm_ad() argument 303 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain); in aes_gcm_ad() 305 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
|
| H A D | aes-siv.c | 169 size_t crypt_len; in aes_siv_decrypt() local 178 crypt_len = iv_c_len - AES_BLOCK_SIZE; in aes_siv_decrypt() 188 _len[num_elem] = crypt_len; in aes_siv_decrypt() 191 os_memcpy(out, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt() 196 ret = aes_ctr_encrypt(k2, key_len, iv, out, crypt_len); in aes_siv_decrypt()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/core/crypto/ |
| H A D | aes-gcm.c | 229 const u8 *crypt, size_t crypt_len, u8 *S) in aes_gcm_ghash() argument 241 ghash(H, crypt, crypt_len, S); in aes_gcm_ghash() 243 WPA_PUT_BE64(len_buf + 8, crypt_len * 8); in aes_gcm_ghash() 288 const u8 *crypt, size_t crypt_len, in aes_gcm_ad() argument 303 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain); in aes_gcm_ad() 305 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
|
| H A D | aes-siv.c | 169 size_t crypt_len; in aes_siv_decrypt() local 178 crypt_len = iv_c_len - AES_BLOCK_SIZE; in aes_siv_decrypt() 188 _len[num_elem] = crypt_len; in aes_siv_decrypt() 191 os_memcpy(out, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt() 196 ret = aes_ctr_encrypt(k2, key_len, iv, out, crypt_len); in aes_siv_decrypt()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/core/crypto/ |
| H A D | aes-gcm.c | 229 const u8 *crypt, size_t crypt_len, u8 *S) in aes_gcm_ghash() argument 241 ghash(H, crypt, crypt_len, S); in aes_gcm_ghash() 243 WPA_PUT_BE64(len_buf + 8, crypt_len * 8); in aes_gcm_ghash() 288 const u8 *crypt, size_t crypt_len, in aes_gcm_ad() argument 303 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain); in aes_gcm_ad() 305 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
|
| H A D | aes-siv.c | 169 size_t crypt_len; in aes_siv_decrypt() local 178 crypt_len = iv_c_len - AES_BLOCK_SIZE; in aes_siv_decrypt() 188 _len[num_elem] = crypt_len; in aes_siv_decrypt() 191 os_memcpy(out, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt() 196 ret = aes_ctr_encrypt(k2, key_len, iv, out, crypt_len); in aes_siv_decrypt()
|
| H A D | aes-ccm.c | 178 size_t M, const u8 *crypt, size_t crypt_len, in aes_ccm_ad() argument 198 aes_ccm_encr(aes, L, crypt, crypt_len, plain, a); in aes_ccm_ad() 200 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, crypt_len, x); in aes_ccm_ad() 201 aes_ccm_auth(aes, plain, crypt_len, x); in aes_ccm_ad()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/core/crypto/ |
| H A D | aes-gcm.c | 229 const u8 *crypt, size_t crypt_len, u8 *S) in aes_gcm_ghash() argument 241 ghash(H, crypt, crypt_len, S); in aes_gcm_ghash() 243 WPA_PUT_BE64(len_buf + 8, crypt_len * 8); in aes_gcm_ghash() 288 const u8 *crypt, size_t crypt_len, in aes_gcm_ad() argument 303 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain); in aes_gcm_ad() 305 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
|
| H A D | aes-siv.c | 169 size_t crypt_len; in aes_siv_decrypt() local 178 crypt_len = iv_c_len - AES_BLOCK_SIZE; in aes_siv_decrypt() 188 _len[num_elem] = crypt_len; in aes_siv_decrypt() 191 os_memcpy(out, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt() 196 ret = aes_ctr_encrypt(k2, key_len, iv, out, crypt_len); in aes_siv_decrypt()
|
| /OK3568_Linux_fs/kernel/net/ceph/ |
| H A D | crypto.c | 226 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() 263 *pout_len = crypt_len; in ceph_aes_crypt()
|