BIGNUM: Add a comment on chunk order in struct bignum_st
authorRichard Levitte <levitte@openssl.org>
Wed, 24 Nov 2021 06:19:00 +0000 (07:19 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 20 Jan 2022 16:57:39 +0000 (17:57 +0100)
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17139)

crypto/bn/bn_local.h

index 3c8534e1f7ba3277fb23512f6c545daba866aa88..94f647e67197a06613ee9bc0e1db6e5b4c1b3adc 100644 (file)
@@ -223,8 +223,11 @@ BN_ULONG bn_sub_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,
                       int num);
 
 struct bignum_st {
-    BN_ULONG *d;                /* Pointer to an array of 'BN_BITS2' bit
-                                 * chunks. */
+    BN_ULONG *d;                /*
+                                 * Pointer to an array of 'BN_BITS2' bit
+                                 * chunks. These chunks are organised in
+                                 * a least significant chunk first order.
+                                 */
     int top;                    /* Index of last used d +1. */
     /* The next are internal book keeping for bn_expand. */
     int dmax;                   /* Size of the d array. */