Searched refs:AES_BLOCK_SIZE (Results 1 - 25 of 52) sorted by relevance

123

/external/wpa_supplicant_8/hostapd/src/crypto/
H A Daes-cbc.c27 u8 cbc[AES_BLOCK_SIZE];
34 os_memcpy(cbc, iv, AES_BLOCK_SIZE);
36 blocks = data_len / AES_BLOCK_SIZE;
38 for (j = 0; j < AES_BLOCK_SIZE; j++)
41 os_memcpy(pos, cbc, AES_BLOCK_SIZE);
42 pos += AES_BLOCK_SIZE;
60 u8 cbc[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE];
67 os_memcpy(cbc, iv, AES_BLOCK_SIZE);
69 blocks = data_len / AES_BLOCK_SIZE;
[all...]
H A Daes-ctr.c31 u8 counter[AES_BLOCK_SIZE], buf[AES_BLOCK_SIZE];
36 os_memcpy(counter, nonce, AES_BLOCK_SIZE);
41 len = (left < AES_BLOCK_SIZE) ? left : AES_BLOCK_SIZE;
47 for (i = AES_BLOCK_SIZE - 1; i >= 0; i--) {
H A Daes-omac1.c21 for (i = 0; i < AES_BLOCK_SIZE - 1; i++)
23 pad[AES_BLOCK_SIZE - 1] <<= 1;
25 pad[AES_BLOCK_SIZE - 1] ^= 0x87;
46 u8 cbc[AES_BLOCK_SIZE], pad[AES_BLOCK_SIZE];
53 os_memset(cbc, 0, AES_BLOCK_SIZE);
64 while (left >= AES_BLOCK_SIZE) {
65 for (i = 0; i < AES_BLOCK_SIZE; i++) {
73 if (left > AES_BLOCK_SIZE)
75 left -= AES_BLOCK_SIZE;
[all...]
H A Daes-ccm.c32 u8 aad_buf[2 * AES_BLOCK_SIZE];
33 u8 b[AES_BLOCK_SIZE];
41 WPA_PUT_BE16(&b[AES_BLOCK_SIZE - L], plain_len);
43 wpa_hexdump_key(MSG_EXCESSIVE, "CCM B_0", b, AES_BLOCK_SIZE);
56 if (aad_len > AES_BLOCK_SIZE - 2) {
57 xor_aes_block(&aad_buf[AES_BLOCK_SIZE], x);
59 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x);
66 size_t last = len % AES_BLOCK_SIZE;
69 for (i = 0; i < len / AES_BLOCK_SIZE; i++) {
72 data += AES_BLOCK_SIZE;
[all...]
H A Daes-eax.c34 u8 nonce_mac[AES_BLOCK_SIZE], hdr_mac[AES_BLOCK_SIZE],
35 data_mac[AES_BLOCK_SIZE];
69 for (i = 0; i < AES_BLOCK_SIZE; i++)
98 u8 nonce_mac[AES_BLOCK_SIZE], hdr_mac[AES_BLOCK_SIZE],
99 data_mac[AES_BLOCK_SIZE];
139 for (i = 0; i < AES_BLOCK_SIZE; i++) {
H A Daes.h12 #define AES_BLOCK_SIZE 16 macro
H A Dcrypto_internal-cipher.c76 os_memcpy(ctx->u.aes.cbc, iv, AES_BLOCK_SIZE);
117 if (len % AES_BLOCK_SIZE)
119 blocks = len / AES_BLOCK_SIZE;
121 for (j = 0; j < AES_BLOCK_SIZE; j++)
125 os_memcpy(crypt, ctx->u.aes.cbc, AES_BLOCK_SIZE);
126 plain += AES_BLOCK_SIZE;
127 crypt += AES_BLOCK_SIZE;
181 if (len % AES_BLOCK_SIZE)
183 blocks = len / AES_BLOCK_SIZE;
185 os_memcpy(tmp, crypt, AES_BLOCK_SIZE);
[all...]
/external/wpa_supplicant_8/src/crypto/
H A Daes-cbc.c27 u8 cbc[AES_BLOCK_SIZE];
34 os_memcpy(cbc, iv, AES_BLOCK_SIZE);
36 blocks = data_len / AES_BLOCK_SIZE;
38 for (j = 0; j < AES_BLOCK_SIZE; j++)
41 os_memcpy(pos, cbc, AES_BLOCK_SIZE);
42 pos += AES_BLOCK_SIZE;
60 u8 cbc[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE];
67 os_memcpy(cbc, iv, AES_BLOCK_SIZE);
69 blocks = data_len / AES_BLOCK_SIZE;
[all...]
H A Daes-ctr.c31 u8 counter[AES_BLOCK_SIZE], buf[AES_BLOCK_SIZE];
36 os_memcpy(counter, nonce, AES_BLOCK_SIZE);
41 len = (left < AES_BLOCK_SIZE) ? left : AES_BLOCK_SIZE;
47 for (i = AES_BLOCK_SIZE - 1; i >= 0; i--) {
H A Daes-omac1.c21 for (i = 0; i < AES_BLOCK_SIZE - 1; i++)
23 pad[AES_BLOCK_SIZE - 1] <<= 1;
25 pad[AES_BLOCK_SIZE - 1] ^= 0x87;
46 u8 cbc[AES_BLOCK_SIZE], pad[AES_BLOCK_SIZE];
53 os_memset(cbc, 0, AES_BLOCK_SIZE);
64 while (left >= AES_BLOCK_SIZE) {
65 for (i = 0; i < AES_BLOCK_SIZE; i++) {
73 if (left > AES_BLOCK_SIZE)
75 left -= AES_BLOCK_SIZE;
[all...]
H A Daes-ccm.c32 u8 aad_buf[2 * AES_BLOCK_SIZE];
33 u8 b[AES_BLOCK_SIZE];
41 WPA_PUT_BE16(&b[AES_BLOCK_SIZE - L], plain_len);
43 wpa_hexdump_key(MSG_EXCESSIVE, "CCM B_0", b, AES_BLOCK_SIZE);
56 if (aad_len > AES_BLOCK_SIZE - 2) {
57 xor_aes_block(&aad_buf[AES_BLOCK_SIZE], x);
59 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x);
66 size_t last = len % AES_BLOCK_SIZE;
69 for (i = 0; i < len / AES_BLOCK_SIZE; i++) {
72 data += AES_BLOCK_SIZE;
[all...]
H A Daes-eax.c34 u8 nonce_mac[AES_BLOCK_SIZE], hdr_mac[AES_BLOCK_SIZE],
35 data_mac[AES_BLOCK_SIZE];
69 for (i = 0; i < AES_BLOCK_SIZE; i++)
98 u8 nonce_mac[AES_BLOCK_SIZE], hdr_mac[AES_BLOCK_SIZE],
99 data_mac[AES_BLOCK_SIZE];
139 for (i = 0; i < AES_BLOCK_SIZE; i++) {
H A Daes.h12 #define AES_BLOCK_SIZE 16 macro
H A Dcrypto_internal-cipher.c76 os_memcpy(ctx->u.aes.cbc, iv, AES_BLOCK_SIZE);
117 if (len % AES_BLOCK_SIZE)
119 blocks = len / AES_BLOCK_SIZE;
121 for (j = 0; j < AES_BLOCK_SIZE; j++)
125 os_memcpy(crypt, ctx->u.aes.cbc, AES_BLOCK_SIZE);
126 plain += AES_BLOCK_SIZE;
127 crypt += AES_BLOCK_SIZE;
181 if (len % AES_BLOCK_SIZE)
183 blocks = len / AES_BLOCK_SIZE;
185 os_memcpy(tmp, crypt, AES_BLOCK_SIZE);
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Daes-cbc.c27 u8 cbc[AES_BLOCK_SIZE];
34 os_memcpy(cbc, iv, AES_BLOCK_SIZE);
36 blocks = data_len / AES_BLOCK_SIZE;
38 for (j = 0; j < AES_BLOCK_SIZE; j++)
41 os_memcpy(pos, cbc, AES_BLOCK_SIZE);
42 pos += AES_BLOCK_SIZE;
60 u8 cbc[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE];
67 os_memcpy(cbc, iv, AES_BLOCK_SIZE);
69 blocks = data_len / AES_BLOCK_SIZE;
[all...]
H A Daes-ctr.c31 u8 counter[AES_BLOCK_SIZE], buf[AES_BLOCK_SIZE];
36 os_memcpy(counter, nonce, AES_BLOCK_SIZE);
41 len = (left < AES_BLOCK_SIZE) ? left : AES_BLOCK_SIZE;
47 for (i = AES_BLOCK_SIZE - 1; i >= 0; i--) {
H A Daes-omac1.c21 for (i = 0; i < AES_BLOCK_SIZE - 1; i++)
23 pad[AES_BLOCK_SIZE - 1] <<= 1;
25 pad[AES_BLOCK_SIZE - 1] ^= 0x87;
46 u8 cbc[AES_BLOCK_SIZE], pad[AES_BLOCK_SIZE];
53 os_memset(cbc, 0, AES_BLOCK_SIZE);
64 while (left >= AES_BLOCK_SIZE) {
65 for (i = 0; i < AES_BLOCK_SIZE; i++) {
73 if (left > AES_BLOCK_SIZE)
75 left -= AES_BLOCK_SIZE;
[all...]
H A Daes-ccm.c32 u8 aad_buf[2 * AES_BLOCK_SIZE];
33 u8 b[AES_BLOCK_SIZE];
41 WPA_PUT_BE16(&b[AES_BLOCK_SIZE - L], plain_len);
43 wpa_hexdump_key(MSG_EXCESSIVE, "CCM B_0", b, AES_BLOCK_SIZE);
56 if (aad_len > AES_BLOCK_SIZE - 2) {
57 xor_aes_block(&aad_buf[AES_BLOCK_SIZE], x);
59 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x);
66 size_t last = len % AES_BLOCK_SIZE;
69 for (i = 0; i < len / AES_BLOCK_SIZE; i++) {
72 data += AES_BLOCK_SIZE;
[all...]
H A Daes-eax.c34 u8 nonce_mac[AES_BLOCK_SIZE], hdr_mac[AES_BLOCK_SIZE],
35 data_mac[AES_BLOCK_SIZE];
69 for (i = 0; i < AES_BLOCK_SIZE; i++)
98 u8 nonce_mac[AES_BLOCK_SIZE], hdr_mac[AES_BLOCK_SIZE],
99 data_mac[AES_BLOCK_SIZE];
139 for (i = 0; i < AES_BLOCK_SIZE; i++) {
H A Daes.h12 #define AES_BLOCK_SIZE 16 macro
/external/chromium_org/third_party/openssl/openssl/crypto/aes/
H A 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);
90 len = length / AES_BLOCK_SIZE;
98 aes_block_t *iv2p = (aes_block_t *)(ivec + AES_BLOCK_SIZE);
113 in += AES_BLOCK_SIZE;
114 out += AES_BLOCK_SIZE;
116 memcpy(ivec, ivp->data, AES_BLOCK_SIZE);
117 memcpy(ivec + AES_BLOCK_SIZE, iv2
[all...]
H A Daes_ctr.c57 unsigned char ivec[AES_BLOCK_SIZE],
58 unsigned char ecount_buf[AES_BLOCK_SIZE],
/external/openssl/crypto/aes/
H A 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);
90 len = length / AES_BLOCK_SIZE;
98 aes_block_t *iv2p = (aes_block_t *)(ivec + AES_BLOCK_SIZE);
113 in += AES_BLOCK_SIZE;
114 out += AES_BLOCK_SIZE;
116 memcpy(ivec, ivp->data, AES_BLOCK_SIZE);
117 memcpy(ivec + AES_BLOCK_SIZE, iv2
[all...]
H A Daes_ctr.c57 unsigned char ivec[AES_BLOCK_SIZE],
58 unsigned char ecount_buf[AES_BLOCK_SIZE],
/external/openssh/
H A Dcipher-ctr.c42 u_char aes_counter[AES_BLOCK_SIZE];
66 u_char buf[AES_BLOCK_SIZE];
76 ssh_ctr_inc(c->aes_counter, AES_BLOCK_SIZE);
79 n = (n + 1) % AES_BLOCK_SIZE;
98 memcpy(c->aes_counter, iv, AES_BLOCK_SIZE);
135 aes_ctr.block_size = AES_BLOCK_SIZE;
136 aes_ctr.iv_len = AES_BLOCK_SIZE;

Completed in 261 milliseconds

123