[#EVP_CIPHER_CTX_test_flags]
= EVP&lowbar;CIPHER&lowbar;CTX&lowbar;test&lowbar;flags
:mrdocs:

Test whether selected flag bits are set on a cipher context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;CIPHER&lowbar;CTX&lowbar;test&lowbar;flags(
    xref:EVP_CIPHER_CTX.adoc[EVP&lowbar;CIPHER&lowbar;CTX] const* ctx,
    int flags);
----

== Return Value

Bitwise AND of `flags` with the context&apos;s flags (non&hyphen;zero if any tested bit is set)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Cipher context to query&period;
| *flags*
| Bitmask of EVP&lowbar;CIPHER&lowbar;CTX flag bits to test (for example EVP&lowbar;CIPH&lowbar;NO&lowbar;PADDING)&period;
|===


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