2
0

BN_copy.pod 673 B

12345678910111213141516171819202122232425262728293031323334
  1. =pod
  2. =head1 NAME
  3. BN_copy, BN_dup - copy BIGNUMs
  4. =head1 SYNOPSIS
  5. #include <openssl/bn.h>
  6. BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from);
  7. BIGNUM *BN_dup(const BIGNUM *from);
  8. =head1 DESCRIPTION
  9. BN_copy() copies B<from> to B<to>. BN_dup() creates a new B<BIGNUM>
  10. containing the value B<from>.
  11. =head1 RETURN VALUES
  12. BN_copy() returns B<to> on success, NULL on error. BN_dup() returns
  13. the new B<BIGNUM>, and NULL on error. The error codes can be obtained
  14. by L<ERR_get_error(3)|ERR_get_error(3)>.
  15. =head1 SEE ALSO
  16. L<bn(3)|bn(3)>, L<ERR_get_error(3)|ERR_get_error(3)>
  17. =head1 HISTORY
  18. BN_copy() and BN_dup() are available in all versions of SSLeay and OpenSSL.
  19. =cut