[#RSA_pkey_ctx_ctrl]
= RSA&lowbar;pkey&lowbar;ctx&lowbar;ctrl
:mrdocs:

Dispatch an RSA&hyphen;specific control operation on an EVP&lowbar;PKEY&lowbar;CTX&period;

== Synopsis

Declared in `&lt;openssl&sol;rsa&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
RSA&lowbar;pkey&lowbar;ctx&lowbar;ctrl(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    int optype,
    int cmd,
    int p1,
    void* p2);
----

== Return Value

Positive on success, or a non&hyphen;positive value on failure &sol; unsupported command&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Key context that must be for an RSA algorithm&period;
| *optype*
| Operation type mask (for example EVP&lowbar;PKEY&lowbar;OP&lowbar;TYPE&lowbar;SIG) or &hyphen;1 for any&period;
| *cmd*
| Control command such as EVP&lowbar;PKEY&lowbar;CTRL&lowbar;RSA&lowbar;PADDING&period;
| *p1*
| Integer argument for `cmd&period;`
| *p2*
| Pointer argument for `cmd,` or NULL when unused&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
