[#OSSL_HPKE_CTX_set1_ikme]
= OSSL&lowbar;HPKE&lowbar;CTX&lowbar;set1&lowbar;ikme
:mrdocs:

Override the sender&apos;s ephemeral IKM used inside OSSL&lowbar;HPKE&lowbar;encap() (deterministic)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;HPKE&lowbar;CTX&lowbar;set1&lowbar;ikme(
    xref:OSSL_HPKE_CTX.adoc[OSSL&lowbar;HPKE&lowbar;CTX]* ctx,
    unsigned char const* ikme,
    size&lowbar;t ikmelen);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Sender HPKE context (optional&semi; call before OSSL&lowbar;HPKE&lowbar;encap())&period;
| *ikme*
| Input key material for deterministic ephemeral key generation&period;
| *ikmelen*
| Length of `ikme&semi;` should be &gt;&equals; OSSL&lowbar;HPKE&lowbar;get&lowbar;recommended&lowbar;ikmelen()&period;
|===


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