| BN_copy, BN_dup - copy BIGNUMs |
| BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from); |
| BIGNUM *BN_dup(const BIGNUM *from); |
| BN_copy() copies B<from> to B<to>. BN_dup() creates a new B<BIGNUM> |
| containing the value B<from>. |
| BN_copy() returns B<to> on success, NULL on error. BN_dup() returns |
| the new B<BIGNUM>, and NULL on error. The error codes can be obtained |
| by L<ERR_get_error(3)|ERR_get_error(3)>. |
| L<bn(3)|bn(3)>, L<ERR_get_error(3)|ERR_get_error(3)> |
| BN_copy() and BN_dup() are available in all versions of SSLeay and OpenSSL. |