Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
NAME
BN_copy, BN_dup, BN_with_flags — copy BIGNUMsSYNOPSIS
#include <openssl/bn.h>BN_copy(BIGNUM *to, const BIGNUM *from);
BN_dup(const BIGNUM *from);
BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags);
DESCRIPTION
BN_copy() copies from to to.- dest should be a newly allocated BIGNUM obtained via a call to BN_new(3). It should not have been used for other purposes or initialised in any way.
- dest must only be used in "read-only" operations, i.e. typically those functions where the relevant parameter is declared "const".
- dest must be used and freed before any further subsequent use of b.