summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/doc/crypto/bn_internal.pod
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/doc/crypto/bn_internal.pod')
-rw-r--r--src/lib/libssl/src/doc/crypto/bn_internal.pod14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libssl/src/doc/crypto/bn_internal.pod b/src/lib/libssl/src/doc/crypto/bn_internal.pod
index 9805a7c9f2..891914678c 100644
--- a/src/lib/libssl/src/doc/crypto/bn_internal.pod
+++ b/src/lib/libssl/src/doc/crypto/bn_internal.pod
@@ -72,19 +72,19 @@ applications.
72 72
73 typedef struct bignum_st 73 typedef struct bignum_st
74 { 74 {
75 int top; /* index of last used d (most significant word) */ 75 int top; /* number of words used in d */
76 BN_ULONG *d; /* pointer to an array of 'BITS2' bit chunks */ 76 BN_ULONG *d; /* pointer to an array containing the integer value */
77 int max; /* size of the d array */ 77 int max; /* size of the d array */
78 int neg; /* sign */ 78 int neg; /* sign */
79 } BIGNUM; 79 } BIGNUM;
80 80
81The big number is stored in B<d>, a malloc()ed array of B<BN_ULONG>s, 81The integer value is stored in B<d>, a malloc()ed array of words (B<BN_ULONG>),
82least significant first. A B<BN_ULONG> can be either 16, 32 or 64 bits 82least significant word first. A B<BN_ULONG> can be either 16, 32 or 64 bits
83in size (B<BITS2>), depending on the 'number of bits' specified in 83in size, depending on the 'number of bits' (B<BITS2>) specified in
84C<openssl/bn.h>. 84C<openssl/bn.h>.
85 85
86B<max> is the size of the B<d> array that has been allocated. B<top> 86B<max> is the size of the B<d> array that has been allocated. B<top>
87is the 'last' entry being used, so for a value of 4, bn.d[0]=4 and 87is the number of words being used, so for a value of 4, bn.d[0]=4 and
88bn.top=1. B<neg> is 1 if the number is negative. When a B<BIGNUM> is 88bn.top=1. B<neg> is 1 if the number is negative. When a B<BIGNUM> is
89B<0>, the B<d> field can be B<NULL> and B<top> == B<0>. 89B<0>, the B<d> field can be B<NULL> and B<top> == B<0>.
90 90
@@ -202,7 +202,7 @@ call bn_expand2(), which allocates a new B<d> array and copies the
202data. They return B<NULL> on error, B<b> otherwise. 202data. They return B<NULL> on error, B<b> otherwise.
203 203
204The bn_fix_top() macro reduces B<a-E<gt>top> to point to the most 204The bn_fix_top() macro reduces B<a-E<gt>top> to point to the most
205significant non-zero word when B<a> has shrunk. 205significant non-zero word plus one when B<a> has shrunk.
206 206
207=head2 Debugging 207=head2 Debugging
208 208