From 99d3349d6f4b62c89d0cbcd6200cbc9bda388c52 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 24 Nov 2021 07:19:00 +0100 Subject: [PATCH] BIGNUM: Add a comment on chunk order in struct bignum_st Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/17139) --- crypto/bn/bn_local.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crypto/bn/bn_local.h b/crypto/bn/bn_local.h index 3c8534e1f7..94f647e671 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. */ -- 2.34.1