[#BN_with_flags]
= BN&lowbar;with&lowbar;flags
:mrdocs:

Make `dest` a temporary read&hyphen;only clone of `b` with flags replaced by `flags&period;`

== Synopsis

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

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

== Description

For temporary use only&colon; `dest` and `b` must not be used concurrently, and `dest` should be a freshly BN&lowbar;new()&apos;d BIGNUM that has not been initialised otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dest*
| Destination BIGNUM receiving the aliased limbs and new flags&period;
| *b*
| Source BIGNUM whose limbs are shared&period;
| *flags*
| Replacement BN&lowbar;FLG&lowbar;&ast; flag word for `dest&period;`
|===


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