diff options
author | Richard Levitte <levitte@openssl.org> | 2021-11-24 07:19:00 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2022-01-20 17:57:39 +0100 |
commit | 99d3349d6f4b62c89d0cbcd6200cbc9bda388c52 (patch) | |
tree | bd3778592709d55ec54183f53809a3aff93ea6f9 /crypto | |
parent | 4e26fe508bf18732983212ca4749eabb1f02e142 (diff) |
BIGNUM: Add a comment on chunk order in struct bignum_st
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17139)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/bn/bn_local.h | 7 |
1 files 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. */ |