| /src/external/bsd/wpa/dist/src/crypto/ |
| aes-cbc.c | 27 u8 cbc[AES_BLOCK_SIZE]; 37 os_memcpy(cbc, iv, AES_BLOCK_SIZE); 39 blocks = data_len / AES_BLOCK_SIZE; 41 for (j = 0; j < AES_BLOCK_SIZE; j++) 44 os_memcpy(pos, cbc, AES_BLOCK_SIZE); 45 pos += AES_BLOCK_SIZE; 63 u8 cbc[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE]; 73 os_memcpy(cbc, iv, AES_BLOCK_SIZE); 75 blocks = data_len / AES_BLOCK_SIZE; [all...] |
| aes-omac1.c | 21 for (i = 0; i < AES_BLOCK_SIZE - 1; i++) 23 pad[AES_BLOCK_SIZE - 1] <<= 1; 25 pad[AES_BLOCK_SIZE - 1] ^= 0x87; 47 u8 cbc[AES_BLOCK_SIZE], pad[AES_BLOCK_SIZE]; 57 os_memset(cbc, 0, AES_BLOCK_SIZE); 68 while (left >= AES_BLOCK_SIZE) { 69 for (i = 0; i < AES_BLOCK_SIZE; i++) { 76 if (i + 1 == AES_BLOCK_SIZE && 77 left == AES_BLOCK_SIZE) [all...] |
| aes-ccm.c | 32 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...] |
| aes-ctr.c | 32 u8 counter[AES_BLOCK_SIZE], buf[AES_BLOCK_SIZE]; 37 os_memcpy(counter, nonce, AES_BLOCK_SIZE); 42 len = (left < AES_BLOCK_SIZE) ? left : AES_BLOCK_SIZE; 48 for (i = AES_BLOCK_SIZE - 1; i >= 0; i--) {
|
| aes-siv.c | 17 static const u8 zero[AES_BLOCK_SIZE]; 25 for (i = 0; i < AES_BLOCK_SIZE - 1; i++) 27 pad[AES_BLOCK_SIZE - 1] <<= 1; 29 pad[AES_BLOCK_SIZE - 1] ^= 0x87; 37 for (i = 0; i < AES_BLOCK_SIZE; i++) 56 os_memset(pad, 0, AES_BLOCK_SIZE); 59 if (len < AES_BLOCK_SIZE) 67 u8 tmp[AES_BLOCK_SIZE], tmp2[AES_BLOCK_SIZE]; 76 tmp[AES_BLOCK_SIZE - 1] = 1 [all...] |
| aes-eax.c | 34 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++) {
|
| aes.h | 12 #define AES_BLOCK_SIZE 16
|
| crypto_internal-cipher.c | 76 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...] |
| aes-gcm.c | 19 val = WPA_GET_BE32(block + AES_BLOCK_SIZE - 4); 21 WPA_PUT_BE32(block + AES_BLOCK_SIZE - 4, val); 146 u8 cb[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE]; 155 os_memcpy(cb, icb, AES_BLOCK_SIZE); 160 xpos += AES_BLOCK_SIZE; 161 ypos += AES_BLOCK_SIZE; 184 os_memset(H, 0, AES_BLOCK_SIZE); 187 H, AES_BLOCK_SIZE); 199 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len) [all...] |
| /src/crypto/external/apache2/openssl/dist/crypto/aes/ |
| aes_ige.c | 28 #define N_WORDS (AES_BLOCK_SIZE / sizeof(unsigned long)) 41 #define load_block(d, s) memcpy((d).data, (s), AES_BLOCK_SIZE) 42 #define store_block(d, s) memcpy((d), (s).data, AES_BLOCK_SIZE) 53 size_t len = length / AES_BLOCK_SIZE; 60 OPENSSL_assert((length % AES_BLOCK_SIZE) == 0); 65 aes_block_t *iv2p = (aes_block_t *)(ivec + AES_BLOCK_SIZE); 80 in += AES_BLOCK_SIZE; 81 out += AES_BLOCK_SIZE; 83 memcpy(ivec, ivp->data, AES_BLOCK_SIZE); 84 memcpy(ivec + AES_BLOCK_SIZE, iv2p->data, AES_BLOCK_SIZE) [all...] |
| /src/crypto/external/bsd/openssl/dist/crypto/aes/ |
| aes_ige.c | 28 #define N_WORDS (AES_BLOCK_SIZE / sizeof(unsigned long)) 41 # define load_block(d, s) memcpy((d).data, (s), AES_BLOCK_SIZE) 42 # define store_block(d, s) memcpy((d), (s).data, AES_BLOCK_SIZE) 53 size_t len = length / AES_BLOCK_SIZE; 60 OPENSSL_assert((length % AES_BLOCK_SIZE) == 0); 68 aes_block_t *iv2p = (aes_block_t *) (ivec + AES_BLOCK_SIZE); 83 in += AES_BLOCK_SIZE; 84 out += AES_BLOCK_SIZE; 86 memcpy(ivec, ivp->data, AES_BLOCK_SIZE); 87 memcpy(ivec + AES_BLOCK_SIZE, iv2p->data, AES_BLOCK_SIZE) [all...] |
| /src/crypto/external/bsd/openssl.old/dist/crypto/aes/ |
| aes_ige.c | 22 #define N_WORDS (AES_BLOCK_SIZE / sizeof(unsigned long)) 35 # define load_block(d, s) memcpy((d).data, (s), AES_BLOCK_SIZE) 36 # define store_block(d, s) memcpy((d), (s).data, AES_BLOCK_SIZE) 53 OPENSSL_assert((length % AES_BLOCK_SIZE) == 0); 55 len = length / AES_BLOCK_SIZE; 63 aes_block_t *iv2p = (aes_block_t *) (ivec + AES_BLOCK_SIZE); 78 in += AES_BLOCK_SIZE; 79 out += AES_BLOCK_SIZE; 81 memcpy(ivec, ivp->data, AES_BLOCK_SIZE); 82 memcpy(ivec + AES_BLOCK_SIZE, iv2p->data, AES_BLOCK_SIZE) [all...] |
| /src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| aes.c | 81 unsigned char tmp[AES_BLOCK_SIZE]; 85 while (size >= AES_BLOCK_SIZE) { 86 for (i = 0; i < AES_BLOCK_SIZE; i++) 89 memcpy(iv, out, AES_BLOCK_SIZE); 90 size -= AES_BLOCK_SIZE; 91 in += AES_BLOCK_SIZE; 92 out += AES_BLOCK_SIZE; 97 for (i = size; i < AES_BLOCK_SIZE; i++) 100 memcpy(iv, out, AES_BLOCK_SIZE); 103 while (size >= AES_BLOCK_SIZE) { [all...] |
| aes.h | 53 #define AES_BLOCK_SIZE 16
|
| /src/crypto/external/apache2/openssl/dist/providers/implementations/ciphers/ |
| cipher_aes_ocb.h | 14 #define OCB_MAX_TAG_LEN AES_BLOCK_SIZE 15 #define OCB_MAX_DATA_LEN AES_BLOCK_SIZE 16 #define OCB_MAX_AAD_LEN AES_BLOCK_SIZE
|
| cipher_aes_ccm.h | 35 unsigned char b[AES_BLOCK_SIZE]; 39 unsigned char b[AES_BLOCK_SIZE];
|
| cipher_aes_xts_s390x.inc | 112 unsigned char tmp[2][AES_BLOCK_SIZE]; 113 unsigned char nap_n1[AES_BLOCK_SIZE]; 114 unsigned char drop[AES_BLOCK_SIZE]; 118 || inl < AES_BLOCK_SIZE 131 if (inl > XTS_MAX_BLOCKS_PER_DATA_UNIT * AES_BLOCK_SIZE) { 136 len_incomplete = inl % AES_BLOCK_SIZE; 138 (inl / AES_BLOCK_SIZE - 1) * AES_BLOCK_SIZE; 145 memcpy(tmp, in + len_complete, AES_BLOCK_SIZE + len_incomplete); 148 memcpy(nap_n1, km->nap, AES_BLOCK_SIZE); [all...] |
| /src/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ |
| cipher_aes_ocb.h | 14 #define OCB_MAX_TAG_LEN AES_BLOCK_SIZE 15 #define OCB_MAX_DATA_LEN AES_BLOCK_SIZE 16 #define OCB_MAX_AAD_LEN AES_BLOCK_SIZE
|
| cipher_aes_ccm.h | 35 unsigned char b[AES_BLOCK_SIZE]; 39 unsigned char b[AES_BLOCK_SIZE];
|
| /src/crypto/external/bsd/openssh/dist/ |
| cipher-aesctr.h | 24 #define AES_BLOCK_SIZE 16 29 u8 ctr[AES_BLOCK_SIZE]; /* counter */
|
| cipher-aesctr.c | 64 memcpy(x->ctr, iv, AES_BLOCK_SIZE); 71 u8 buf[AES_BLOCK_SIZE]; 76 aesctr_inc(x->ctr, AES_BLOCK_SIZE); 79 n = (n + 1) % AES_BLOCK_SIZE;
|
| /src/external/bsd/libarchive/dist/libarchive/ |
| archive_cryptor_private.h | 53 #define AES_BLOCK_SIZE 16 60 uint8_t nonce[AES_BLOCK_SIZE]; 61 uint8_t encr_buf[AES_BLOCK_SIZE]; 75 #define AES_BLOCK_SIZE 16 81 uint8_t nonce[AES_BLOCK_SIZE]; 82 uint8_t encr_buf[AES_BLOCK_SIZE]; 93 #define AES_BLOCK_SIZE 16 99 uint8_t nonce[AES_BLOCK_SIZE]; 100 uint8_t encr_buf[AES_BLOCK_SIZE]; 124 uint8_t nonce[AES_BLOCK_SIZE]; [all...] |
| archive_cryptor.c | 172 ctx->encr_pos = AES_BLOCK_SIZE; 187 r = CCCryptorUpdate(ref, ctx->nonce, AES_BLOCK_SIZE, ctx->encr_buf, 188 AES_BLOCK_SIZE, NULL); 268 ctx->encr_pos = AES_BLOCK_SIZE; 279 status = BCryptEncrypt(ctx->hKey, (PUCHAR)ctx->nonce, AES_BLOCK_SIZE, 280 NULL, NULL, 0, (PUCHAR)ctx->encr_buf, AES_BLOCK_SIZE, 310 ctx->encr_pos = AES_BLOCK_SIZE; 342 ctx->encr_pos = AES_BLOCK_SIZE; 352 aes_encrypt(&ctx->ctx, AES_BLOCK_SIZE, ctx->encr_buf, ctx->nonce); 357 aes128_encrypt(&ctx->ctx.c128, AES_BLOCK_SIZE, ctx->encr_buf [all...] |
| /src/crypto/external/apache2/openssl/dist/engines/ |
| e_padlock.c | 184 #define AES_BLOCK_SIZE 16 197 unsigned char iv[AES_BLOCK_SIZE]; /* Initialization vector */ 323 memcpy(cdata->iv, EVP_CIPHER_CTX_iv(ctx), AES_BLOCK_SIZE); 325 memcpy(EVP_CIPHER_CTX_iv_noconst(ctx), cdata->iv, AES_BLOCK_SIZE); 339 if (chunk >= AES_BLOCK_SIZE) 343 while (chunk < AES_BLOCK_SIZE && nbytes != 0) { 348 while (chunk < AES_BLOCK_SIZE && nbytes != 0) { 354 EVP_CIPHER_CTX_set_num(ctx, chunk % AES_BLOCK_SIZE); 360 memcpy(cdata->iv, EVP_CIPHER_CTX_iv(ctx), AES_BLOCK_SIZE); 362 if ((chunk = nbytes & ~(AES_BLOCK_SIZE - 1))) [all...] |
| /src/crypto/external/bsd/openssl/dist/engines/ |
| e_padlock.c | 186 # define AES_BLOCK_SIZE 16 199 unsigned char iv[AES_BLOCK_SIZE]; /* Initialization vector */ 327 memcpy(cdata->iv, EVP_CIPHER_CTX_iv(ctx), AES_BLOCK_SIZE); 329 memcpy(EVP_CIPHER_CTX_iv_noconst(ctx), cdata->iv, AES_BLOCK_SIZE); 343 if (chunk >= AES_BLOCK_SIZE) 347 while (chunk < AES_BLOCK_SIZE && nbytes != 0) { 351 while (chunk < AES_BLOCK_SIZE && nbytes != 0) { 357 EVP_CIPHER_CTX_set_num(ctx, chunk % AES_BLOCK_SIZE); 363 memcpy(cdata->iv, EVP_CIPHER_CTX_iv(ctx), AES_BLOCK_SIZE); 365 if ((chunk = nbytes & ~(AES_BLOCK_SIZE - 1))) [all...] |