Searched refs:ac_block (Results 1 – 2 of 2) sorted by relevance
| /freebsd/sys/opencrypto/ |
| H A D | xform_aes_icm.c | 151 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() 214 rijndaelEncrypt(ctx->ac_ek, ctx->ac_nr, ctx->ac_block, keystream); in aes_icm_crypt_multi() [all …]
|
| H A D | xform_enc.h | 109 uint8_t ac_block[AESICM_BLOCKSIZE]; member
|