[#OSSL_HPKE_CTX_set1_authpriv]
= OSSL&lowbar;HPKE&lowbar;CTX&lowbar;set1&lowbar;authpriv
:mrdocs:

Set the sender authentication private key for AUTH &sol; PSKAUTH modes&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;authpriv(
    xref:OSSL_HPKE_CTX.adoc[OSSL&lowbar;HPKE&lowbar;CTX]* ctx,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* priv);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Sender HPKE context (call before OSSL&lowbar;HPKE&lowbar;encap())&period;
| *priv*
| Sender authentication private key using the same KEM as the suite&period;
|===


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