5 BN_copy, BN_dup - copy BIGNUMs
9 #include <openssl/bn.h>
11 BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from);
13 BIGNUM *BN_dup(const BIGNUM *from);
17 BN_copy() copies B<from> to B<to>. BN_dup() creates a new B<BIGNUM>
18 containing the value B<from>.
22 BN_copy() returns B<to> on success, NULL on error. BN_dup() returns
23 the new B<BIGNUM>, and NULL on error. The error codes can be obtained
24 by L<ERR_get_error(3)|ERR_get_error(3)>.
28 L<bn(3)|bn(3)>, L<ERR_get_error(3)|ERR_get_error(3)>
32 BN_copy() and BN_dup() are available in all versions of SSLeay and OpenSSL.