[#BN_get_flags]
= BN&lowbar;get&lowbar;flags
:mrdocs:

Test whether the given BN&lowbar;FLG&lowbar;&ast; bits are set on a BIGNUM&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BN&lowbar;get&lowbar;flags(
    xref:BIGNUM.adoc[BIGNUM] const* b,
    int n);
----

== Return Value

`n` bits that are set on `b` (0 if none)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *b*
| BIGNUM to query&period;
| *n*
| Flag mask (for example BN&lowbar;FLG&lowbar;CONSTTIME)&period;
|===


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