Dispatch an RSA-specific control operation on an EVP_PKEY_CTX.
Declared in <openssl/rsa.h>
int
RSA_pkey_ctx_ctrl(
EVP_PKEY_CTX* ctx,
int optype,
int cmd,
int p1,
void* p2);
Positive on success, or a non-positive value on failure / unsupported command.
| 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. |