#include <openssl/kdf.h>
#include <openssl/core.h>
#include <openssl/core_names.h>
-#include "internal/asn1_int.h"
-#include "internal/evp_int.h"
+#include "crypto/asn1.h"
+#include "crypto/evp.h"
#include "internal/numbers.h"
#include "internal/provider.h"
#include "evp_locl.h"
{
EVP_KDF_CTX *dst;
- if (src->data == NULL || src == NULL || src->meth->dupctx == NULL)
+ if (src == NULL || src->data == NULL || src->meth->dupctx == NULL)
return NULL;
dst = OPENSSL_malloc(sizeof(*dst));
const char *EVP_KDF_name(const EVP_KDF *kdf)
{
- return kdf->name;
+ return evp_first_name(kdf->prov, kdf->name_id);
}
const OSSL_PROVIDER *EVP_KDF_provider(const EVP_KDF *kdf)
*params = OSSL_PARAM_construct_size_t(OSSL_KDF_PARAM_SIZE, &s);
if (ctx->meth->get_ctx_params != NULL
- && ctx->meth->get_ctx_params(ctx, params))
+ && ctx->meth->get_ctx_params(ctx->data, params))
return s;
if (ctx->meth->get_params != NULL
&& ctx->meth->get_params(params))