[#EVP_KDF_fetch]
= EVP&lowbar;KDF&lowbar;fetch
:mrdocs:

Fetch a key&hyphen;derivation algorithm implementation from providers&period;

== Synopsis

Declared in `&lt;openssl&sol;kdf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EVP_KDF.adoc[EVP&lowbar;KDF]*
EVP&lowbar;KDF&lowbar;fetch(
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* algorithm,
    char const* properties);
----

== Return Value

Fetched EVP&lowbar;KDF with refcount 1, or NULL on error&semi; free with EVP&lowbar;KDF&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *libctx*
| Library context, or NULL for the default&period;
| *algorithm*
| KDF name such as &quot;HKDF&quot; or &quot;PBKDF2&quot;&period;
| *properties*
| Optional provider property query, or NULL&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
