Lines Matching refs:cctx
27 EVP_CIPHER_CTX *cctx; member
60 ctx->cctx = EVP_CIPHER_CTX_new(); in CMAC_CTX_new()
61 if (ctx->cctx == NULL) { in CMAC_CTX_new()
71 EVP_CIPHER_CTX_reset(ctx->cctx); in CMAC_CTX_cleanup()
81 return ctx->cctx; in CMAC_CTX_get0_cipher_ctx()
89 EVP_CIPHER_CTX_free(ctx->cctx); in CMAC_CTX_free()
99 if ((bl = EVP_CIPHER_CTX_get_block_size(in->cctx)) == 0) in CMAC_CTX_copy()
101 if (!EVP_CIPHER_CTX_copy(out->cctx, in->cctx)) in CMAC_CTX_copy()
123 if (!EVP_EncryptInit_ex2(ctx->cctx, NULL, NULL, zero_iv, param)) in ossl_cmac_init()
125 block_len = EVP_CIPHER_CTX_get_block_size(ctx->cctx); in ossl_cmac_init()
137 if (!EVP_EncryptInit_ex(ctx->cctx, cipher, impl, NULL, NULL)) in ossl_cmac_init()
140 if (!EVP_EncryptInit_ex2(ctx->cctx, cipher, NULL, NULL, param)) in ossl_cmac_init()
150 if (EVP_CIPHER_CTX_get0_cipher(ctx->cctx) == NULL) in ossl_cmac_init()
152 if (EVP_CIPHER_CTX_set_key_length(ctx->cctx, keylen) <= 0) in ossl_cmac_init()
154 if (!EVP_EncryptInit_ex2(ctx->cctx, NULL, key, zero_iv, param)) in ossl_cmac_init()
156 if ((bl = EVP_CIPHER_CTX_get_block_size(ctx->cctx)) < 0) in ossl_cmac_init()
158 if (EVP_Cipher(ctx->cctx, ctx->tbl, zero_iv, bl) <= 0) in ossl_cmac_init()
164 if (!EVP_EncryptInit_ex2(ctx->cctx, NULL, NULL, zero_iv, param)) in ossl_cmac_init()
190 if ((bl = EVP_CIPHER_CTX_get_block_size(ctx->cctx)) == 0) in CMAC_Update()
207 if (EVP_Cipher(ctx->cctx, ctx->tbl, ctx->last_block, bl) <= 0) in CMAC_Update()
220 if (EVP_Cipher(ctx->cctx, ctx->tbl, data, bl) <= 0) in CMAC_Update()
227 if (EVP_Cipher(ctx->cctx, buf, data, max_burst_blocks * bl) <= 0) in CMAC_Update()
234 if (EVP_Cipher(ctx->cctx, buf, data, cipher_blocks * bl) <= 0) in CMAC_Update()
254 if ((bl = EVP_CIPHER_CTX_get_block_size(ctx->cctx)) == 0) in CMAC_Final()
272 if (EVP_Cipher(ctx->cctx, out, out, bl) <= 0) { in CMAC_Final()
290 return EVP_EncryptInit_ex(ctx->cctx, NULL, NULL, NULL, ctx->tbl); in CMAC_resume()