From: Ulf Möller Date: Fri, 7 Nov 2003 01:33:00 +0000 (+0000) Subject: Geoff suggested a more succinct description for "top". X-Git-Tag: BEN_FIPS_TEST_4^2~11^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d18b993c435d3f095cf485f48859065ce6052e35;p=thirdparty%2Fopenssl.git Geoff suggested a more succinct description for "top". --- diff --git a/doc/crypto/bn_internal.pod b/doc/crypto/bn_internal.pod index 46abb0547fb..891914678c4 100644 --- a/doc/crypto/bn_internal.pod +++ b/doc/crypto/bn_internal.pod @@ -72,19 +72,19 @@ applications. typedef struct bignum_st { - int top; /* index of last used d (most significant word) + 1 */ - BN_ULONG *d; /* pointer to an array of 'BITS2' bit chunks */ + int top; /* number of words used in d */ + BN_ULONG *d; /* pointer to an array containing the integer value */ int max; /* size of the d array */ int neg; /* sign */ } BIGNUM; -The big number is stored in B, a malloc()ed array of Bs, -least significant first. A B can be either 16, 32 or 64 bits -in size (B), depending on the 'number of bits' specified in +The integer value is stored in B, a malloc()ed array of words (B), +least significant word first. A B can be either 16, 32 or 64 bits +in size, depending on the 'number of bits' (B) specified in C. B is the size of the B array that has been allocated. B -is the 'last' entry being used plus one, so for a value of 4, bn.d[0]=4 and +is the number of words being used, so for a value of 4, bn.d[0]=4 and bn.top=1. B is 1 if the number is negative. When a B is B<0>, the B field can be B and B == B<0>.