summaryrefslogtreecommitdiffstats
path: root/doc/crypto/BN_CTX_new.pod
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2000-01-23 22:06:24 +0000
committerUlf Möller <ulf@openssl.org>2000-01-23 22:06:24 +0000
commitdd8dec69b825c9fdafc26a200961702d850496b5 (patch)
treeb7d7ca7365271c822226e1ddc6a4fd68c72273ad /doc/crypto/BN_CTX_new.pod
parentce052b6c3b18d4ab5f74990d82d09827a6014823 (diff)
Document the BN library.
Diffstat (limited to 'doc/crypto/BN_CTX_new.pod')
-rw-r--r--doc/crypto/BN_CTX_new.pod48
1 files changed, 48 insertions, 0 deletions
diff --git a/doc/crypto/BN_CTX_new.pod b/doc/crypto/BN_CTX_new.pod
new file mode 100644
index 0000000000..7d2b806e56
--- /dev/null
+++ b/doc/crypto/BN_CTX_new.pod
@@ -0,0 +1,48 @@
+=pod
+
+=head1 NAME
+
+BN_CTX_new, BN_CTX_init, BN_CTX_free - allocate and free BN_CTX structures
+
+=head1 SYNOPSIS
+
+ #include <openssl/bn.h>
+
+ BN_CTX *BN_CTX_new(void);
+
+ void BN_CTX_init(BN_CTX *c);
+
+ void BN_CTX_free(BN_CTX *c);
+
+=head1 DESCRIPTION
+
+A B<BN_CTX> is a structure that holds temporary variables used by
+library functions. Thus, it can be avoided to create and destroy
+the temporary B<BIGNUM> objects whenever a library function is
+called.
+
+BN_CTX_new() allocated and initializes a B<BN_CTX>
+structure. BN_CTX_init() initializes an existing uninitialized
+B<BN_CTX>.
+
+BN_CTX_free() frees the components of the B<BN_CTX>, and if it was
+created by BN_CTX_new(), also the structure itself.
+
+=head1 RETURN VALUES
+
+BN_CTX_new() returns a pointer to the B<BN_CTX>. If the allocation fails,
+it returns B<NULL> and sets an error code that can be obtained by
+ERR_get_error(3).
+
+BN_CTX_init() and BN_CTX_free() have no return values.
+
+=head1 SEE ALSO
+
+bn(3), err(3), BN_add(3)
+
+=head1 HISTORY
+
+BN_CTX_new() and BN_CTX_free() are availabe in all versions on SSLeay
+and OpenSSL. BN_CTX_init() was added in SSLeay 0.9.1b.
+
+=cut