Lines Matching refs:ctx_init
60 EVP_MAC_CTX *ctx_init; member
140 EVP_MAC_CTX_free(ctx->ctx_init); in kbkdf_reset()
151 static int derive(EVP_MAC_CTX *ctx_init, kbkdf_mode mode, unsigned char *iv, in derive() argument
181 ctx = EVP_MAC_CTX_dup(ctx_init); in derive()
226 if (ctx->ctx_init == NULL) { in kbkdf_derive()
243 h = EVP_MAC_CTX_get_mac_size(ctx->ctx_init); in kbkdf_derive()
258 ret = derive(ctx->ctx_init, ctx->mode, ctx->iv, ctx->iv_len, ctx->label, in kbkdf_derive()
288 if (!ossl_prov_macctx_load_from_params(&ctx->ctx_init, params, NULL, in kbkdf_set_ctx_params()
291 else if (ctx->ctx_init != NULL in kbkdf_set_ctx_params()
292 && !EVP_MAC_is_a(EVP_MAC_CTX_get0_mac(ctx->ctx_init), in kbkdf_set_ctx_params()
294 && !EVP_MAC_is_a(EVP_MAC_CTX_get0_mac(ctx->ctx_init), in kbkdf_set_ctx_params()
337 if (ctx->ctx_init != NULL && ctx->ki_len != 0 in kbkdf_set_ctx_params()
338 && !EVP_MAC_init(ctx->ctx_init, ctx->ki, ctx->ki_len, NULL)) in kbkdf_set_ctx_params()