1BN_copy(3)                          OpenSSL                         BN_copy(3)
2
3
4

NAME

6       BN_copy, BN_dup - copy BIGNUMs
7

SYNOPSIS

9        #include <openssl/bn.h>
10
11        BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from);
12
13        BIGNUM *BN_dup(const BIGNUM *from);
14

DESCRIPTION

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

RETURN VALUES

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

SEE ALSO

25       bn(3), ERR_get_error(3)
26

HISTORY

28       BN_copy() and BN_dup() are available in all versions of SSLeay and
29       OpenSSL.
30
31
32
331.0.2o                            2020-08-01                        BN_copy(3)
Impressum