Lines Matching refs:cipher_ctx
62 EVP_CIPHER_CTX cipher_ctx; member
74 EVP_CIPHER_CTX_init(&ctx->cipher_ctx); in CMAC_CTX_init()
78 EVP_CIPHER_CTX_cleanup(&ctx->cipher_ctx); in CMAC_CTX_cleanup()
128 if (!EVP_CIPHER_CTX_copy(&out->cipher_ctx, &in->cipher_ctx)) { in CMAC_CTX_copy()
181 !EVP_EncryptInit_ex(&ctx->cipher_ctx, cipher, NULL, key, kZeroIV) || in CMAC_Init()
182 !EVP_Cipher(&ctx->cipher_ctx, scratch, kZeroIV, block_size) || in CMAC_Init()
184 !EVP_EncryptInit_ex(&ctx->cipher_ctx, NULL, NULL, NULL, kZeroIV)) { in CMAC_Init()
202 return EVP_EncryptInit_ex(&ctx->cipher_ctx, NULL, NULL, NULL, kZeroIV); in CMAC_Reset()
206 size_t block_size = EVP_CIPHER_CTX_block_size(&ctx->cipher_ctx); in CMAC_Update()
232 if (!EVP_Cipher(&ctx->cipher_ctx, scratch, ctx->block, block_size)) { in CMAC_Update()
239 if (!EVP_Cipher(&ctx->cipher_ctx, scratch, in, block_size)) { in CMAC_Update()
253 size_t block_size = EVP_CIPHER_CTX_block_size(&ctx->cipher_ctx); in CMAC_Final()
277 return EVP_Cipher(&ctx->cipher_ctx, out, out, block_size); in CMAC_Final()