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

Name

Description

ctx

Key context that must be for an RSA algorithm.

optype

Operation type mask (for example EVP_PKEY_OP_TYPE_SIG) or ‐1 for any.

cmd

Control command such as EVP_PKEY_CTRL_RSA_PADDING.

p1

Integer argument for cmd.

p2

Pointer argument for cmd, or NULL when unused.

Created with MrDocs