From 3ee6077c118e03372705fde5d2a9798885ef1df5 Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Tue, 14 Mar 2023 21:40:23 +0100 Subject: [PATCH] Wikipedia spelling for 'little-endian' --- doc/crypto_eddsa_sign.3monocypher | 10 +++++----- doc/crypto_elligator_map.3monocypher | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/crypto_eddsa_sign.3monocypher b/doc/crypto_eddsa_sign.3monocypher index db2324a..e3b2179 100644 --- a/doc/crypto_eddsa_sign.3monocypher +++ b/doc/crypto_eddsa_sign.3monocypher @@ -207,19 +207,19 @@ The following descriptions are kept concise and technical on purpose. If you do not understand them, do not not use those functions. .Pp .Fn crypto_eddsa_trim_scalar -reads a 256-bit number represented in Little Endian, +reads a 256-bit number represented in little-endian, and outputs the same number modified as follows: the 3 least significant bits are cleared; the most significant bit is cleared; and the second most significant bit is set. .Pp .Fn crypto_eddsa_reduce -reads a 512-bit number represented in Little Endian, +reads a 512-bit number represented in little-endian, and outputs the same number reduced modulo the prime order of Curve25519. .Pp .Fn crypto_eddsa_mul_add -reads three 256-bit numbers represented in Little Endian, +reads three 256-bit numbers represented in little-endian, and outputs .Fa a × @@ -229,7 +229,7 @@ and outputs reduced modulo the prime order of Curve25519. .Pp .Fn crypto_eddsa_scalarbase -reads a 256-bit number represented in Little Endian, +reads a 256-bit number represented in little-endian, and outputs the result of the scalar multiplication between that number and the twisted Edwards base point of Curve25519. The output uses the same compressed representation as regular EdDSA @@ -239,7 +239,7 @@ the most significant bit represents the sign of the coordinate (1 if it is odd, 0 if it is even), and the 255 other bits represent the .Em y -coordinate in Little Endian. +coordinate in little-endian. .Pp .Fn crypto_eddsa_check_equation reads a signature diff --git a/doc/crypto_elligator_map.3monocypher b/doc/crypto_elligator_map.3monocypher index 26245b2..d14b4f6 100644 --- a/doc/crypto_elligator_map.3monocypher +++ b/doc/crypto_elligator_map.3monocypher @@ -263,7 +263,7 @@ Elligator 2 was described in: .%P pp. 967\(en980 .Re .Pp -Monocypher's Elligator 2 representatives are encoded as little Endian +Monocypher's Elligator 2 representatives are encoded as little-endian 254-bit numbers. The two most significant bits (254 and 255) are not used. .Fn crypto_elligator_map -- 2.47.3