skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 2:... HP Open Source Security for OpenVMS Volume 2:...
go to beginning of reference: CRYPTO Application Programming Interface (API)... CRYPTO Application Programming Interface (API)...
go to previous page: BN_cmp BN_cmp
go to next page: BN_CTX_newBN_CTX_new
end of book navigation links


BN_copy
Description
Return Values
See Also
History
 

NAME

BN_copy, BN_dup - copy BIGNUMs

Synopsis  

#include <openssl/bn.h>
BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from);
BIGNUM *BN_dup(const BIGNUM *from);


return to top DESCRIPTION  

BN_copy() copies from to to. BN_dup() creates a new BIGNUM containing the value from.


return to top RETURN VALUES  

BN_copy() returns to on success, NULL on error. BN_dup() returns the new BIGNUM, and NULL on error. The error codes can be obtained by ERR_get_error(3) .


return to top SEE ALSO  

bn(3) , ERR_get_error(3)


return to top HISTORY  

BN_copy() and BN_dup() are available in all versions of SSLeay and OpenSSL.
go to previous page: BN_cmp BN_cmp
go to next page: BN_CTX_newBN_CTX_new