EVP_PKEY_CTX_set0_rsa_oaep_label

Set the RSA-OAEP label on an EVP_PKEY_CTX, transferring ownership of label.

Synopsis

Declared in <openssl/rsa.h>

int
EVP_PKEY_CTX_set0_rsa_oaep_label(
    EVP_PKEY_CTX* ctx,
    void* label,
    int llen);

Description

The library takes ownership of label; the caller must not free it afterwards.

Return Value

1 on success, or a negative value for unsupported / failure.

Parameters

NameDescription
ctxContext whose padding mode must be RSA_PKCS1_OAEP_PADDING.
labelLabel bytes to adopt, or NULL (with llen 0) to clear the label.
llenLength of label in bytes.