Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/experimental.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2021-11-24 09:19:00 +0300
committerRichard Levitte <levitte@openssl.org>2022-01-20 19:57:39 +0300
commit99d3349d6f4b62c89d0cbcd6200cbc9bda388c52 (patch)
treebd3778592709d55ec54183f53809a3aff93ea6f9
parent4e26fe508bf18732983212ca4749eabb1f02e142 (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)
-rw-r--r--crypto/bn/bn_local.h7
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. */