BN_with_flags

Make dest a temporary read-only clone of b with flags replaced by flags.

Synopsis

Declared in <openssl/bn.h>

void
BN_with_flags(
    BIGNUM* dest,
    BIGNUM const* b,
    int flags);

Description

For temporary use only: dest and b must not be used concurrently, and dest should be a freshly BN_new()'d BIGNUM that has not been initialised otherwise.

Parameters

NameDescription
destDestination BIGNUM receiving the aliased limbs and new flags.
bSource BIGNUM whose limbs are shared.
flagsReplacement BN_FLG_* flag word for dest.