Set the RSA-OAEP label on an EVP_PKEY_CTX, transferring ownership of label.
Declared in <openssl/rsa.h>
int
EVP_PKEY_CTX_set0_rsa_oaep_label(
EVP_PKEY_CTX* ctx,
void* label,
int llen);
The library takes ownership of label; the caller must not free it afterwards.
1 on success, or a negative value for unsupported / failure.
| Name | Description |
|---|---|
| ctx | Context whose padding mode must be RSA_PKCS1_OAEP_PADDING. |
| label | Label bytes to adopt, or NULL (with llen 0) to clear the label. |
| llen | Length of label in bytes. |