diff options
Diffstat (limited to 'src/lib/libssl/src/doc/crypto/bn_internal.pod')
-rw-r--r-- | src/lib/libssl/src/doc/crypto/bn_internal.pod | 14 |
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 | ||
81 | The big number is stored in B<d>, a malloc()ed array of B<BN_ULONG>s, | 81 | The integer value is stored in B<d>, a malloc()ed array of words (B<BN_ULONG>), |
82 | least significant first. A B<BN_ULONG> can be either 16, 32 or 64 bits | 82 | least significant word first. A B<BN_ULONG> can be either 16, 32 or 64 bits |
83 | in size (B<BITS2>), depending on the 'number of bits' specified in | 83 | in size, depending on the 'number of bits' (B<BITS2>) specified in |
84 | C<openssl/bn.h>. | 84 | C<openssl/bn.h>. |
85 | 85 | ||
86 | B<max> is the size of the B<d> array that has been allocated. B<top> | 86 | B<max> is the size of the B<d> array that has been allocated. B<top> |
87 | is the 'last' entry being used, so for a value of 4, bn.d[0]=4 and | 87 | is the number of words being used, so for a value of 4, bn.d[0]=4 and |
88 | bn.top=1. B<neg> is 1 if the number is negative. When a B<BIGNUM> is | 88 | bn.top=1. B<neg> is 1 if the number is negative. When a B<BIGNUM> is |
89 | B<0>, the B<d> field can be B<NULL> and B<top> == B<0>. | 89 | B<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 | |||
202 | data. They return B<NULL> on error, B<b> otherwise. | 202 | data. They return B<NULL> on error, B<b> otherwise. |
203 | 203 | ||
204 | The bn_fix_top() macro reduces B<a-E<gt>top> to point to the most | 204 | The bn_fix_top() macro reduces B<a-E<gt>top> to point to the most |
205 | significant non-zero word when B<a> has shrunk. | 205 | significant non-zero word plus one when B<a> has shrunk. |
206 | 206 | ||
207 | =head2 Debugging | 207 | =head2 Debugging |
208 | 208 | ||