AES_BLOCK_LEN
UINT8 in_buf[AES_BLOCK_LEN] = {0};
UINT8 out_buf[AES_BLOCK_LEN];
in_buf[AES_BLOCK_LEN-9] = ndx;
in_buf[AES_BLOCK_LEN-1] = i = 1;
while (nbytes >= AES_BLOCK_LEN) {
memcpy(dst_buf,out_buf,AES_BLOCK_LEN);
in_buf[AES_BLOCK_LEN-1] = ++i;
nbytes -= AES_BLOCK_LEN;
dst_buf += AES_BLOCK_LEN;
UINT8 cache[AES_BLOCK_LEN]; /* Previous AES output is saved */
UINT8 nonce[AES_BLOCK_LEN]; /* The AES input making above cache */
#ifdef AES_BLOCK_LEN
#define AES_SCHED_LEN ((AES256_ROUNDS + 1) * AES_BLOCK_LEN)
const uint8_t from[AES_BLOCK_LEN], uint8_t to[AES_BLOCK_LEN],
const uint8_t iv[AES_BLOCK_LEN]);
const uint8_t from[AES_BLOCK_LEN], uint8_t to[AES_BLOCK_LEN],
const uint8_t iv[AES_BLOCK_LEN]);
const uint8_t *from, uint8_t *to, const uint8_t iv[AES_BLOCK_LEN]);
const uint8_t from[AES_BLOCK_LEN], uint8_t to[AES_BLOCK_LEN]);
const uint8_t from[AES_BLOCK_LEN], uint8_t to[AES_BLOCK_LEN]);
uint8_t *data, const uint8_t iv[AES_BLOCK_LEN]);
const uint8_t iv[AES_BLOCK_LEN], int do_encrypt);
const uint8_t iv[AES_BLOCK_LEN]);
const uint8_t iv[AES_BLOCK_LEN]);
const uint8_t iv[AES_BLOCK_LEN], int do_encrypt)
const uint8_t iv[AES_BLOCK_LEN])
const uint8_t iv[AES_BLOCK_LEN])
const uint8_t *from, uint8_t *to, const uint8_t iv[AES_BLOCK_LEN])
len /= AES_BLOCK_LEN;
from += AES_BLOCK_LEN;
to += AES_BLOCK_LEN;
const uint8_t from[AES_BLOCK_LEN], uint8_t to[AES_BLOCK_LEN])
len /= AES_BLOCK_LEN;
from += AES_BLOCK_LEN;
to += AES_BLOCK_LEN;
const uint8_t from[AES_BLOCK_LEN], uint8_t to[AES_BLOCK_LEN])
len /= AES_BLOCK_LEN;
from += AES_BLOCK_LEN;
to += AES_BLOCK_LEN;
AES_BLOCK_LEN, iv);
AES_BLOCK_LEN, iv);
.blocksize = AES_BLOCK_LEN,
.ivsize = AES_BLOCK_LEN,
.blocksize = AES_BLOCK_LEN,
.ivsize = AES_BLOCK_LEN,
.blocksize = AES_BLOCK_LEN,
uint8_t b0[AES_BLOCK_LEN], uint8_t aad[2 * AES_BLOCK_LEN],
uint8_t auth[AES_BLOCK_LEN], uint8_t s0[AES_BLOCK_LEN])
xor_block(auth, aad, AES_BLOCK_LEN);
xor_block(auth, &aad[AES_BLOCK_LEN], AES_BLOCK_LEN);
uint8_t aad[2 * AES_BLOCK_LEN], b0[AES_BLOCK_LEN], b[AES_BLOCK_LEN],
e[AES_BLOCK_LEN], s0[AES_BLOCK_LEN];
while (space >= AES_BLOCK_LEN) {
CCMP_ENCRYPT(i, b, b0, pos, e, AES_BLOCK_LEN);
pos += AES_BLOCK_LEN, space -= AES_BLOCK_LEN;
data_len -= AES_BLOCK_LEN;
len = min(dl, AES_BLOCK_LEN);
len = min(dl, AES_BLOCK_LEN);
data_len -= AES_BLOCK_LEN;
uint8_t aad[2 * AES_BLOCK_LEN];
uint8_t b0[AES_BLOCK_LEN], b[AES_BLOCK_LEN], a[AES_BLOCK_LEN];
uint8_t mic[AES_BLOCK_LEN];
while (space >= AES_BLOCK_LEN) {
CCMP_DECRYPT(i, b, b0, pos, a, AES_BLOCK_LEN);
pos += AES_BLOCK_LEN, space -= AES_BLOCK_LEN;
data_len -= AES_BLOCK_LEN;
len = min(data_len, AES_BLOCK_LEN);