Index Index for
Section 3
Index Alphabetical
listing for B
Bottom of page Bottom of
page

BN_copy(3)

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 );

DESCRIPTION

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

RETURN VALUES

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

HISTORY

The BN_copy() and BN_dup() functions are available in all versions of SSLeay and OpenSSL.

SEE ALSO

Functions: bn(3), err(3)

Index Index for
Section 3
Index Alphabetical
listing for B
Top of page Top of
page