EVP_CIPHER_CTX_is_encrypting

Test whether a cipher context is currently configured for encryption.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CIPHER_CTX_is_encrypting(EVP_CIPHER_CTX const* ctx);

Return Value

1 if encrypting, or 0 if decrypting.

Parameters

NameDescription
ctxCipher context to query.