Home
last modified time | relevance | path

Searched refs:ac_block (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/opencrypto/
H A Dxform_aes_icm.c151 KASSERT(ivlen <= sizeof(ctx->ac_block), in aes_icm_reinit()
153 bcopy(iv, ctx->ac_block, ivlen); in aes_icm_reinit()
166 bzero(&ctx->cipher.ac_block[AESICM_BLOCKSIZE - 4], 4); in aes_gcm_reinit()
167 ctx->cipher.ac_block[AESICM_BLOCKSIZE - 1] = 2; in aes_gcm_reinit()
181 bzero(ctx->cipher.ac_block, sizeof(ctx->cipher.ac_block)); in aes_ccm_reinit()
182 ctx->cipher.ac_block[0] = (15 - ivlen) - 1; in aes_ccm_reinit()
183 bcopy(iv, ctx->cipher.ac_block + 1, ivlen); in aes_ccm_reinit()
184 ctx->cipher.ac_block[AESICM_BLOCKSIZE - 1] = 1; in aes_ccm_reinit()
201 if (++ctx->ac_block[i]) /* continue on overflow */ in aes_icm_crypt()
220 if (++ctx->ac_block[i]) /* continue on overflow */ in aes_icm_crypt_multi()
[all …]
H A Dxform_enc.h109 uint8_t ac_block[AESICM_BLOCKSIZE]; member