summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_lib.c
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 /crypto/bn/bn_lib.c
parentce052b6c3b18d4ab5f74990d82d09827a6014823 (diff)
Document the BN library.
Diffstat (limited to 'crypto/bn/bn_lib.c')
-rw-r--r--crypto/bn/bn_lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c
index 5d62d88e8b..df79d6e338 100644
--- a/crypto/bn/bn_lib.c
+++ b/crypto/bn/bn_lib.c
@@ -341,6 +341,11 @@ void BN_CTX_free(BN_CTX *c)
Free(c);
}
+/* This is an internal function that should not be used in applications.
+ * It ensures that 'b' has enough room for a 'bits' bit number. It is
+ * mostly used by the various BIGNUM routines. If there is an error,
+ * NULL is returned. if not, 'b' is returned.
+ */
BIGNUM *bn_expand2(BIGNUM *b, int words)
{
BN_ULONG *A,*a;