/external/wpa_supplicant_8/src/crypto/ |
D | aes-ccm.c | 32 u8 aad_buf[2 * AES_BLOCK_SIZE]; in aes_ccm_auth_start() 33 u8 b[AES_BLOCK_SIZE]; in aes_ccm_auth_start() 41 WPA_PUT_BE16(&b[AES_BLOCK_SIZE - L], plain_len); in aes_ccm_auth_start() 43 wpa_hexdump_key(MSG_EXCESSIVE, "CCM B_0", b, AES_BLOCK_SIZE); in aes_ccm_auth_start() 56 if (aad_len > AES_BLOCK_SIZE - 2) { in aes_ccm_auth_start() 57 xor_aes_block(&aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start() 59 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start() 66 size_t last = len % AES_BLOCK_SIZE; in aes_ccm_auth() 69 for (i = 0; i < len / AES_BLOCK_SIZE; i++) { in aes_ccm_auth() 72 data += AES_BLOCK_SIZE; in aes_ccm_auth() [all …]
|
D | aes-cbc.c | 27 u8 cbc[AES_BLOCK_SIZE]; in aes_128_cbc_encrypt() 37 os_memcpy(cbc, iv, AES_BLOCK_SIZE); in aes_128_cbc_encrypt() 39 blocks = data_len / AES_BLOCK_SIZE; in aes_128_cbc_encrypt() 41 for (j = 0; j < AES_BLOCK_SIZE; j++) in aes_128_cbc_encrypt() 44 os_memcpy(pos, cbc, AES_BLOCK_SIZE); in aes_128_cbc_encrypt() 45 pos += AES_BLOCK_SIZE; in aes_128_cbc_encrypt() 63 u8 cbc[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE]; in aes_128_cbc_decrypt() 73 os_memcpy(cbc, iv, AES_BLOCK_SIZE); in aes_128_cbc_decrypt() 75 blocks = data_len / AES_BLOCK_SIZE; in aes_128_cbc_decrypt() 77 os_memcpy(tmp, pos, AES_BLOCK_SIZE); in aes_128_cbc_decrypt() [all …]
|
D | aes-siv.c | 17 static const u8 zero[AES_BLOCK_SIZE]; 25 for (i = 0; i < AES_BLOCK_SIZE - 1; i++) in dbl() 27 pad[AES_BLOCK_SIZE - 1] <<= 1; in dbl() 29 pad[AES_BLOCK_SIZE - 1] ^= 0x87; in dbl() 37 for (i = 0; i < AES_BLOCK_SIZE; i++) in xor() 56 os_memset(pad, 0, AES_BLOCK_SIZE); in pad_block() 59 if (len < AES_BLOCK_SIZE) in pad_block() 67 u8 tmp[AES_BLOCK_SIZE], tmp2[AES_BLOCK_SIZE]; in aes_s2v() 74 tmp[AES_BLOCK_SIZE - 1] = 1; in aes_s2v() 90 if (len[i] >= AES_BLOCK_SIZE) { in aes_s2v() [all …]
|
D | aes-omac1.c | 21 for (i = 0; i < AES_BLOCK_SIZE - 1; i++) in gf_mulx() 23 pad[AES_BLOCK_SIZE - 1] <<= 1; in gf_mulx() 25 pad[AES_BLOCK_SIZE - 1] ^= 0x87; in gf_mulx() 47 u8 cbc[AES_BLOCK_SIZE], pad[AES_BLOCK_SIZE]; in omac1_aes_vector() 57 os_memset(cbc, 0, AES_BLOCK_SIZE); in omac1_aes_vector() 68 while (left >= AES_BLOCK_SIZE) { in omac1_aes_vector() 69 for (i = 0; i < AES_BLOCK_SIZE; i++) { in omac1_aes_vector() 76 if (i + 1 == AES_BLOCK_SIZE && in omac1_aes_vector() 77 left == AES_BLOCK_SIZE) in omac1_aes_vector() 84 if (left > AES_BLOCK_SIZE) in omac1_aes_vector() [all …]
|
D | aes-gcm.c | 19 val = WPA_GET_BE32(block + AES_BLOCK_SIZE - 4); in inc32() 21 WPA_PUT_BE32(block + AES_BLOCK_SIZE - 4, val); in inc32() 146 u8 cb[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE]; in aes_gctr() 155 os_memcpy(cb, icb, AES_BLOCK_SIZE); in aes_gctr() 160 xpos += AES_BLOCK_SIZE; in aes_gctr() 161 ypos += AES_BLOCK_SIZE; in aes_gctr() 184 os_memset(H, 0, AES_BLOCK_SIZE); in aes_gcm_init_hash_subkey() 187 H, AES_BLOCK_SIZE); in aes_gcm_init_hash_subkey() 199 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len); in aes_gcm_prepare_j0() 200 J0[AES_BLOCK_SIZE - 1] = 0x01; in aes_gcm_prepare_j0() [all …]
|
D | crypto_internal-cipher.c | 76 os_memcpy(ctx->u.aes.cbc, iv, AES_BLOCK_SIZE); in crypto_cipher_init() 117 if (len % AES_BLOCK_SIZE) in crypto_cipher_encrypt() 119 blocks = len / AES_BLOCK_SIZE; in crypto_cipher_encrypt() 121 for (j = 0; j < AES_BLOCK_SIZE; j++) in crypto_cipher_encrypt() 125 os_memcpy(crypt, ctx->u.aes.cbc, AES_BLOCK_SIZE); in crypto_cipher_encrypt() 126 plain += AES_BLOCK_SIZE; in crypto_cipher_encrypt() 127 crypt += AES_BLOCK_SIZE; in crypto_cipher_encrypt() 181 if (len % AES_BLOCK_SIZE) in crypto_cipher_decrypt() 183 blocks = len / AES_BLOCK_SIZE; in crypto_cipher_decrypt() 185 os_memcpy(tmp, crypt, AES_BLOCK_SIZE); in crypto_cipher_decrypt() [all …]
|
D | aes-ctr.c | 31 u8 counter[AES_BLOCK_SIZE], buf[AES_BLOCK_SIZE]; in aes_128_ctr_encrypt() 36 os_memcpy(counter, nonce, AES_BLOCK_SIZE); in aes_128_ctr_encrypt() 41 len = (left < AES_BLOCK_SIZE) ? left : AES_BLOCK_SIZE; in aes_128_ctr_encrypt() 47 for (i = AES_BLOCK_SIZE - 1; i >= 0; i--) { in aes_128_ctr_encrypt()
|
D | aes-eax.c | 34 u8 nonce_mac[AES_BLOCK_SIZE], hdr_mac[AES_BLOCK_SIZE], in aes_128_eax_encrypt() 35 data_mac[AES_BLOCK_SIZE]; in aes_128_eax_encrypt() 69 for (i = 0; i < AES_BLOCK_SIZE; i++) in aes_128_eax_encrypt() 98 u8 nonce_mac[AES_BLOCK_SIZE], hdr_mac[AES_BLOCK_SIZE], in aes_128_eax_decrypt() 99 data_mac[AES_BLOCK_SIZE]; in aes_128_eax_decrypt() 139 for (i = 0; i < AES_BLOCK_SIZE; i++) { in aes_128_eax_decrypt()
|
D | aes.h | 12 #define AES_BLOCK_SIZE 16 macro
|
D | aes-wrap.c | 28 u8 *a, *r, b[AES_BLOCK_SIZE]; in aes_wrap()
|
D | aes-unwrap.c | 29 u8 a[8], *r, b[AES_BLOCK_SIZE]; in aes_unwrap()
|
D | crypto_module_tests.c | 86 u8 out[2 * AES_BLOCK_SIZE + sizeof(plaintext_2)]; in test_siv() 306 u8 data[sizeof(msg)], tag[AES_BLOCK_SIZE]; in test_eax() 319 if (os_memcmp(tag, cipher + sizeof(data), AES_BLOCK_SIZE) != 0) { in test_eax()
|
/external/boringssl/src/crypto/cmac/ |
D | cmac.c | 63 uint8_t k1[AES_BLOCK_SIZE]; 64 uint8_t k2[AES_BLOCK_SIZE]; 66 uint8_t block[AES_BLOCK_SIZE]; 143 static const uint8_t kZeroIV[AES_BLOCK_SIZE] = {0}; 147 uint8_t scratch[AES_BLOCK_SIZE]; in CMAC_Init() 149 if (EVP_CIPHER_block_size(cipher) != AES_BLOCK_SIZE || in CMAC_Init() 152 !EVP_Cipher(&ctx->cipher_ctx, scratch, kZeroIV, AES_BLOCK_SIZE) || in CMAC_Init() 171 uint8_t scratch[AES_BLOCK_SIZE]; in CMAC_Update() 174 size_t todo = AES_BLOCK_SIZE - ctx->block_used; in CMAC_Update() 193 assert(ctx->block_used == AES_BLOCK_SIZE); in CMAC_Update() [all …]
|
/external/boringssl/src/crypto/aes/ |
D | aes_test.cc | 23 const uint8_t plaintext[AES_BLOCK_SIZE], in TestAES() argument 24 const uint8_t ciphertext[AES_BLOCK_SIZE]) { in TestAES() argument 32 uint8_t block[AES_BLOCK_SIZE]; in TestAES() 34 if (memcmp(block, ciphertext, AES_BLOCK_SIZE) != 0) { in TestAES() 40 memcpy(block, plaintext, AES_BLOCK_SIZE); in TestAES() 42 if (memcmp(block, ciphertext, AES_BLOCK_SIZE) != 0) { in TestAES() 54 if (memcmp(block, plaintext, AES_BLOCK_SIZE) != 0) { in TestAES() 60 memcpy(block, ciphertext, AES_BLOCK_SIZE); in TestAES() 62 if (memcmp(block, plaintext, AES_BLOCK_SIZE) != 0) { in TestAES()
|
D | mode_wrappers.c | 57 const AES_KEY *key, uint8_t ivec[AES_BLOCK_SIZE], in AES_ctr128_encrypt() argument 58 uint8_t ecount_buf[AES_BLOCK_SIZE], unsigned int *num) { in AES_ctr128_encrypt() argument
|
/external/lzma/CPP/7zip/Crypto/ |
D | MyAes.cpp | 19 memset(_iv, 0, AES_BLOCK_SIZE); in CAesCbcCoder() 35 if (size < AES_BLOCK_SIZE) in STDMETHODIMP_() 36 return AES_BLOCK_SIZE; in STDMETHODIMP_() 56 if (size != AES_BLOCK_SIZE) in SetInitVector()
|
D | MyAes.h | 26 Byte _iv[AES_BLOCK_SIZE];
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_eke_common.c | 49 return AES_BLOCK_SIZE + dhlen; in eap_eke_dhcomp_len() 102 return AES_BLOCK_SIZE + 16 + mac_len; in eap_eke_pnonce_len() 117 return AES_BLOCK_SIZE + 2 * 16 + mac_len; in eap_eke_pnonce_ps_len() 370 u8 iv[AES_BLOCK_SIZE]; in eap_eke_dhcomp() 384 if (random_get_bytes(iv, AES_BLOCK_SIZE)) in eap_eke_dhcomp() 387 iv, AES_BLOCK_SIZE); in eap_eke_dhcomp() 391 os_memcpy(ret_dhcomp, iv, AES_BLOCK_SIZE); in eap_eke_dhcomp() 392 os_memcpy(ret_dhcomp + AES_BLOCK_SIZE, pub, dh_len); in eap_eke_dhcomp() 394 ret_dhcomp, AES_BLOCK_SIZE + dh_len); in eap_eke_dhcomp() 414 os_memcpy(peer_pub, peer_dhcomp + AES_BLOCK_SIZE, dh->prime_len); in eap_eke_shared_secret() [all …]
|
/external/boringssl/src/include/openssl/ |
D | aes.h | 68 #define AES_BLOCK_SIZE 16 macro 112 uint8_t ivec[AES_BLOCK_SIZE], 113 uint8_t ecount_buf[AES_BLOCK_SIZE],
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | mesh_rsn.c | 362 u8 context[AES_BLOCK_SIZE]; in mesh_rsn_derive_aek() 463 if (AES_BLOCK_SIZE + 2 + sizeof(*ampe) + 2 > wpabuf_tailroom(buf)) { in mesh_rsn_protect_frame() 474 mic_ie = os_zalloc(2 + AES_BLOCK_SIZE); in mesh_rsn_protect_frame() 499 mic_ie[1] = AES_BLOCK_SIZE; in mesh_rsn_protect_frame() 505 AES_BLOCK_SIZE); in mesh_rsn_protect_frame() 555 if (!elems->mic || elems->mic_len < AES_BLOCK_SIZE) { in mesh_rsn_process_ampe()
|
/external/lzma/C/ |
D | Aes.h | 11 #define AES_BLOCK_SIZE 16 macro
|
D | Aes.c | 227 for (; numBlocks != 0; numBlocks--, data += AES_BLOCK_SIZE) in AesCbc_Encode() 246 for (; numBlocks != 0; numBlocks--, data += AES_BLOCK_SIZE) in AesCbc_Decode()
|
/external/conscrypt/src/main/java/org/conscrypt/ |
D | OpenSSLCipher.java | 630 private static final int AES_BLOCK_SIZE = 16; field in OpenSSLCipher.EVP_CIPHER.AES 727 return AES_BLOCK_SIZE; in getCipherBlockSize() 1085 private static final int AES_BLOCK_SIZE = 16; field in OpenSSLCipher.EVP_AEAD.AES 1110 return AES_BLOCK_SIZE; in getCipherBlockSize()
|
/external/boringssl/src/crypto/cipher/ |
D | e_aes.c | 1293 uint8_t A[AES_BLOCK_SIZE]; in aead_aes_key_wrap_seal() 1382 uint8_t A[AES_BLOCK_SIZE]; in aead_aes_key_wrap_open() 1626 uint8_t partial_block_buffer[AES_BLOCK_SIZE]; in aead_aes_ctr_hmac_sha256_crypt() 1630 uint8_t counter[AES_BLOCK_SIZE]; in aead_aes_ctr_hmac_sha256_crypt() 1655 in_len_64 >= (UINT64_C(1) << 32) * AES_BLOCK_SIZE) { in aead_aes_ctr_hmac_sha256_seal()
|
/external/boringssl/src/decrepit/xts/ |
D | xts.c | 216 len < AES_BLOCK_SIZE || in aes_xts_cipher()
|