From: Richard Levitte Date: Wed, 24 Nov 2021 06:19:00 +0000 (+0100) Subject: BIGNUM: Add a comment on chunk order in struct bignum_st X-Git-Tag: openssl-3.2.0-alpha1~3041 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99d3349d6f4b62c89d0cbcd6200cbc9bda388c52;p=thirdparty%2Fopenssl.git BIGNUM: Add a comment on chunk order in struct bignum_st Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/17139) --- diff --git a/crypto/bn/bn_local.h b/crypto/bn/bn_local.h index 3c8534e1f7b..94f647e6719 100644 --- a/crypto/bn/bn_local.h +++ b/crypto/bn/bn_local.h @@ -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. */