Lines Matching refs:block_used
68 unsigned block_used; member
160 ctx->block_used = 0; in CMAC_Init()
166 ctx->block_used = 0; in CMAC_Reset()
173 if (ctx->block_used > 0) { in CMAC_Update()
174 size_t todo = AES_BLOCK_SIZE - ctx->block_used; in CMAC_Update()
179 memcpy(ctx->block + ctx->block_used, in, todo); in CMAC_Update()
182 ctx->block_used += todo; in CMAC_Update()
193 assert(ctx->block_used == AES_BLOCK_SIZE); in CMAC_Update()
210 ctx->block_used = in_len; in CMAC_Update()
223 if (ctx->block_used != AES_BLOCK_SIZE) { in CMAC_Final()
226 ctx->block[ctx->block_used] = 0x80; in CMAC_Final()
227 memset(ctx->block + ctx->block_used + 1, 0, in CMAC_Final()
228 AES_BLOCK_SIZE - (ctx->block_used + 1)); in CMAC_Final()