[#EVP_PKEY_CTX_set0_rsa_oaep_label]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;set0&lowbar;rsa&lowbar;oaep&lowbar;label
:mrdocs:

Set the RSA&hyphen;OAEP label on an EVP&lowbar;PKEY&lowbar;CTX, transferring ownership of `label&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;CTX&lowbar;set0&lowbar;rsa&lowbar;oaep&lowbar;label(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    void* label,
    int llen);
----

== Description

The library takes ownership of `label&semi;` the caller must not free it afterwards&period;

== Return Value

1 on success, or a negative value for unsupported &sol; failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Context whose padding mode must be RSA&lowbar;PKCS1&lowbar;OAEP&lowbar;PADDING&period;
| *label*
| Label bytes to adopt, or NULL (with `llen` 0) to clear the label&period;
| *llen*
| Length of `label` in bytes&period;
|===


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