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

Name

Description

dest

Destination BIGNUM receiving the aliased limbs and new flags.

b

Source BIGNUM whose limbs are shared.

flags

Replacement BN_FLG_* flag word for dest.

Created with MrDocs