Lines Matching refs:block_used
70 unsigned block_used; member
162 ctx->block_used = 0; in CMAC_Init()
168 ctx->block_used = 0; in CMAC_Reset()
175 if (ctx->block_used > 0) { in CMAC_Update()
176 size_t todo = AES_BLOCK_SIZE - ctx->block_used; in CMAC_Update()
181 OPENSSL_memcpy(ctx->block + ctx->block_used, in, todo); in CMAC_Update()
184 ctx->block_used += todo; in CMAC_Update()
195 assert(ctx->block_used == AES_BLOCK_SIZE); in CMAC_Update()
212 ctx->block_used = in_len; in CMAC_Update()
225 if (ctx->block_used != AES_BLOCK_SIZE) { in CMAC_Final()
228 ctx->block[ctx->block_used] = 0x80; in CMAC_Final()
229 OPENSSL_memset(ctx->block + ctx->block_used + 1, 0, in CMAC_Final()
230 AES_BLOCK_SIZE - (ctx->block_used + 1)); in CMAC_Final()