BN_copy 3 2003-07-24 0.9.9-dev OpenSSL

NAME

BN_copy, BN_dup - copy BIGNUMs

LIBRARY

libcrypto, -lcrypto

SYNOPSIS


 #include 


 BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from);


 BIGNUM *BN_dup(const BIGNUM *from);

DESCRIPTION

_B_N___c_o_p_y_(_) copies ffrroomm to ttoo. _B_N___d_u_p_(_) creates a new BBIIGGNNUUMM containing the value ffrroomm.

RETURN VALUES

_B_N___c_o_p_y_(_) returns ttoo on success, NULL on error. _B_N___d_u_p_(_) returns the new BBIIGGNNUUMM, and NULL on error. The error codes can be obtained by _E_R_R___g_e_t___e_r_r_o_r(3).

SEE ALSO

_o_p_e_n_s_s_l___b_n(3), _E_R_R___g_e_t___e_r_r_o_r(3)

HISTORY

_B_N___c_o_p_y_(_) and _B_N___d_u_p_(_) are available in all versions of SSLeay and OpenSSL.