RSA_pkey_ctx_ctrl

Dispatch an RSA-specific control operation on an EVP_PKEY_CTX.

Synopsis

Declared in <openssl/rsa.h>

int
RSA_pkey_ctx_ctrl(
    EVP_PKEY_CTX* ctx,
    int optype,
    int cmd,
    int p1,
    void* p2);

Return Value

Positive on success, or a non-positive value on failure / unsupported command.

Parameters

NameDescription
ctxKey context that must be for an RSA algorithm.
optypeOperation type mask (for example EVP_PKEY_OP_TYPE_SIG) or -1 for any.
cmdControl command such as EVP_PKEY_CTRL_RSA_PADDING.
p1Integer argument for cmd.
p2Pointer argument for cmd, or NULL when unused.