Home
last modified time | relevance | path

Searched refs:AES_BLOCK_SIZE (Results 1 – 17 of 17) sorted by relevance

/external/openssl/crypto/aes/
Daes_ige.c57 #define N_WORDS (AES_BLOCK_SIZE / sizeof(unsigned long))
73 #define load_block(d, s) memcpy((d).data, (s), AES_BLOCK_SIZE)
74 #define store_block(d, s) memcpy((d), (s).data, AES_BLOCK_SIZE)
88 OPENSSL_assert((length%AES_BLOCK_SIZE) == 0); in AES_ige_encrypt()
90 len = length / AES_BLOCK_SIZE; in AES_ige_encrypt()
98 aes_block_t *iv2p = (aes_block_t *)(ivec + AES_BLOCK_SIZE); in AES_ige_encrypt()
113 in += AES_BLOCK_SIZE; in AES_ige_encrypt()
114 out += AES_BLOCK_SIZE; in AES_ige_encrypt()
116 memcpy(ivec, ivp->data, AES_BLOCK_SIZE); in AES_ige_encrypt()
117 memcpy(ivec + AES_BLOCK_SIZE, iv2p->data, AES_BLOCK_SIZE); in AES_ige_encrypt()
[all …]
Daes_ctr.c57 unsigned char ivec[AES_BLOCK_SIZE], in AES_ctr128_encrypt() argument
58 unsigned char ecount_buf[AES_BLOCK_SIZE], in AES_ctr128_encrypt() argument
Daes.h69 #define AES_BLOCK_SIZE 16 macro
122 unsigned char ivec[AES_BLOCK_SIZE],
123 unsigned char ecount_buf[AES_BLOCK_SIZE],
/external/wpa_supplicant_8/src/crypto/
Daes-cbc.c27 u8 cbc[AES_BLOCK_SIZE]; in aes_128_cbc_encrypt()
34 os_memcpy(cbc, iv, AES_BLOCK_SIZE); in aes_128_cbc_encrypt()
36 blocks = data_len / AES_BLOCK_SIZE; in aes_128_cbc_encrypt()
38 for (j = 0; j < AES_BLOCK_SIZE; j++) in aes_128_cbc_encrypt()
41 os_memcpy(pos, cbc, AES_BLOCK_SIZE); in aes_128_cbc_encrypt()
42 pos += AES_BLOCK_SIZE; in aes_128_cbc_encrypt()
60 u8 cbc[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE]; in aes_128_cbc_decrypt()
67 os_memcpy(cbc, iv, AES_BLOCK_SIZE); in aes_128_cbc_decrypt()
69 blocks = data_len / AES_BLOCK_SIZE; in aes_128_cbc_decrypt()
71 os_memcpy(tmp, pos, AES_BLOCK_SIZE); in aes_128_cbc_decrypt()
[all …]
Daes-omac1.c21 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()
46 u8 cbc[AES_BLOCK_SIZE], pad[AES_BLOCK_SIZE]; in omac1_aes_128_vector()
53 os_memset(cbc, 0, AES_BLOCK_SIZE); in omac1_aes_128_vector()
64 while (left >= AES_BLOCK_SIZE) { in omac1_aes_128_vector()
65 for (i = 0; i < AES_BLOCK_SIZE; i++) { in omac1_aes_128_vector()
73 if (left > AES_BLOCK_SIZE) in omac1_aes_128_vector()
75 left -= AES_BLOCK_SIZE; in omac1_aes_128_vector()
78 os_memset(pad, 0, AES_BLOCK_SIZE); in omac1_aes_128_vector()
[all …]
Daes-ctr.c31 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()
Daes-eax.c34 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()
Daes.h12 #define AES_BLOCK_SIZE 16 macro
/external/openssh/
Dcipher-ctr.c42 u_char aes_counter[AES_BLOCK_SIZE];
66 u_char buf[AES_BLOCK_SIZE]; in ssh_aes_ctr()
76 ssh_ctr_inc(c->aes_counter, AES_BLOCK_SIZE); in ssh_aes_ctr()
79 n = (n + 1) % AES_BLOCK_SIZE; in ssh_aes_ctr()
98 memcpy(c->aes_counter, iv, AES_BLOCK_SIZE); in ssh_aes_ctr_init()
135 aes_ctr.block_size = AES_BLOCK_SIZE; in evp_aes_128_ctr()
136 aes_ctr.iv_len = AES_BLOCK_SIZE; in evp_aes_128_ctr()
/external/openssl/crypto/evp/
De_aes_cbc_hmac_sha1.c187 if (len%AES_BLOCK_SIZE) return 0; in aesni_cbc_hmac_sha1_cipher()
192 else if (len!=((plen+SHA_DIGEST_LENGTH+AES_BLOCK_SIZE)&-AES_BLOCK_SIZE)) in aesni_cbc_hmac_sha1_cipher()
195 iv = AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_cipher()
252 len -= AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_cipher()
253 iv = AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_cipher()
323 len -= AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_ctrl()
330 return (int)(((len+SHA_DIGEST_LENGTH+AES_BLOCK_SIZE)&-AES_BLOCK_SIZE) in aesni_cbc_hmac_sha1_ctrl()
De_aes.c145 const unsigned char ivec[AES_BLOCK_SIZE]);
1127 if (!out || !in || len<AES_BLOCK_SIZE) in aes_xts_cipher()
/external/qemu/
Daes.c1272 unsigned char tmp[AES_BLOCK_SIZE]; in AES_cbc_encrypt()
1277 while (len >= AES_BLOCK_SIZE) { in AES_cbc_encrypt()
1278 for(n=0; n < AES_BLOCK_SIZE; ++n) in AES_cbc_encrypt()
1281 memcpy(ivec, out, AES_BLOCK_SIZE); in AES_cbc_encrypt()
1282 len -= AES_BLOCK_SIZE; in AES_cbc_encrypt()
1283 in += AES_BLOCK_SIZE; in AES_cbc_encrypt()
1284 out += AES_BLOCK_SIZE; in AES_cbc_encrypt()
1289 for(n=len; n < AES_BLOCK_SIZE; ++n) in AES_cbc_encrypt()
1292 memcpy(out, tmp, AES_BLOCK_SIZE); in AES_cbc_encrypt()
1293 memcpy(ivec, tmp, AES_BLOCK_SIZE); in AES_cbc_encrypt()
[all …]
Daes.h5 #define AES_BLOCK_SIZE 16 macro
/external/openssl/include/openssl/
Daes.h69 #define AES_BLOCK_SIZE 16 macro
122 unsigned char ivec[AES_BLOCK_SIZE],
123 unsigned char ecount_buf[AES_BLOCK_SIZE],
/external/chromium/crypto/
Dencryptor_nss.cc32 if (iv.size() != AES_BLOCK_SIZE) in Init()
60 size_t ciphertext_len = plaintext.size() + AES_BLOCK_SIZE; in Encrypt()
Dencryptor_openssl.cc60 if (iv.size() != AES_BLOCK_SIZE) in Init()
/external/openssh/openbsd-compat/
Dopenssl-compat.h56 # define AES_BLOCK_SIZE 16 macro