Send an algorithm-specific control command to a key context.
Declared in <openssl/evp.h>
int
EVP_PKEY_CTX_ctrl(
EVP_PKEY_CTX* ctx,
int keytype,
int optype,
int cmd,
int p1,
void* p2);
Positive on success, 0 or negative on failure.
| Name | Description |
|---|---|
| ctx | Key context receiving the command. |
| keytype | Expected key type, or -1 to skip the type check. |
| optype | Expected operation type, or -1 to skip the operation check. |
| cmd | Algorithm-specific control command. |
| p1 | Integer argument for cmd. |
| p2 | Pointer argument for cmd, or NULL. |