From aa4d426b4d3527d7e166df1a05058c9a4a0f6683 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 30 Apr 2021 00:33:56 +0200 Subject: initial/final commit --- openssl-1.1.0h/doc/crypto/BN_copy.pod | 69 +++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 openssl-1.1.0h/doc/crypto/BN_copy.pod (limited to 'openssl-1.1.0h/doc/crypto/BN_copy.pod') diff --git a/openssl-1.1.0h/doc/crypto/BN_copy.pod b/openssl-1.1.0h/doc/crypto/BN_copy.pod new file mode 100644 index 0000000..46de544 --- /dev/null +++ b/openssl-1.1.0h/doc/crypto/BN_copy.pod @@ -0,0 +1,69 @@ +=pod + +=head1 NAME + +BN_copy, BN_dup, BN_with_flags - copy BIGNUMs + +=head1 SYNOPSIS + + #include + + BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from); + + BIGNUM *BN_dup(const BIGNUM *from); + + void BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags); + +=head1 DESCRIPTION + +BN_copy() copies B to B. BN_dup() creates a new B +containing the value B. + +BN_with_flags creates a B shallow copy of B in B. It places +significant restrictions on the copied data. Applications that do no adhere to +these restrictions may encounter unexpected side effects or crashes. For that +reason use of this function is discouraged. Any flags provided in B will +be set in B in addition to any flags already set in B. For example this +might commonly be used to create a temporary copy of a BIGNUM with the +B flag set for constant time operations. The temporary copy in +B will share some internal state with B. For this reason the following +restrictions apply to the use of B: + +=over 2 + +=item * + +B should be a newly allocated BIGNUM obtained via a call to BN_new(). It +should not have been used for other purposes or initialised in any way. + +=item * + +B must only be used in "read-only" operations, i.e. typically those +functions where the relevant parameter is declared "const". + +=item * + +B must be used and freed before any further subsequent use of B + +=back + +=head1 RETURN VALUES + +BN_copy() returns B on success, NULL on error. BN_dup() returns +the new B, and NULL on error. The error codes can be obtained +by L. + +=head1 SEE ALSO + +L + +=head1 COPYRIGHT + +Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved. + +Licensed under the OpenSSL license (the "License"). You may not use +this file except in compliance with the License. You can obtain a copy +in the file LICENSE in the source distribution or at +L. + +=cut -- cgit v1.2.3