EVP_CIPHER_CTX_ctrl

Send a cipher-specific control request to an EVP_CIPHER_CTX.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CIPHER_CTX_ctrl(
    EVP_CIPHER_CTX* ctx,
    int type,
    int arg,
    void* ptr);

Return Value

1 on success, <=0 on failure (command-specific).

Parameters

NameDescription
ctxCipher context to control.
typeEVP_CTRL_* command code.
argInteger argument for type.
ptrPointer argument for type, or NULL.