BN_dup

Allocate a new BIGNUM that is a deep copy of a.

Synopsis

Declared in <openssl/bn.h>

BIGNUM*
BN_dup(BIGNUM const* a);

Return Value

New BIGNUM equal to a, or NULL on failure; free with BN_free().

Parameters

NameDescription
aSource value to duplicate.