Test whether selected flag bits are set on a cipher context.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CIPHER_CTX_test_flags(
    EVP_CIPHER_CTX const* ctx,
    int flags);

Return Value

Bitwise AND of flags with the context's flags (non‐zero if any tested bit is set).

Parameters

Name

Description

ctx

Cipher context to query.

flags

Bitmask of EVP_CIPHER_CTX flag bits to test (for example EVP_CIPH_NO_PADDING).

Created with MrDocs