Home
last modified time | relevance | path

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

/f-stack/freebsd/opencrypto/
H A Dxform_aes_icm.c122 bcopy(iv, ctx->ac_block, AESICM_BLOCKSIZE); in aes_icm_reinit()
134 bzero(&ctx->ac_block[AESICM_BLOCKSIZE - 4], 4); in aes_gcm_reinit()
135 ctx->ac_block[AESICM_BLOCKSIZE - 1] = 2; in aes_gcm_reinit()
146 bzero(ctx->ac_block, sizeof(ctx->ac_block)); in aes_ccm_reinit()
148 ctx->ac_block[0] = (15 - AES_CCM_IV_LEN) - 1; in aes_ccm_reinit()
149 bcopy(iv, ctx->ac_block+1, AES_CCM_IV_LEN); in aes_ccm_reinit()
150 ctx->ac_block[AESICM_BLOCKSIZE - 1] = 1; in aes_ccm_reinit()
165 if (++ctx->ac_block[i]) /* continue on overflow */ in aes_icm_crypt()
177 rijndaelEncrypt(ctx->ac_ek, ctx->ac_nr, ctx->ac_block, keystream); in aes_icm_crypt_last()
H A Dxform_enc.h89 uint8_t ac_block[AESICM_BLOCKSIZE]; member