diff options
author | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2023-05-09 12:21:36 +0200 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-05-11 12:26:00 +1000 |
commit | 060f370ebc21b4d334a71ca8b8ab54f22199f177 (patch) | |
tree | 7a2b72c52790fef0af708e58f24d2670bd4ba38d /crypto/bn | |
parent | 316d5a982b2534af2238af3560db8fa103a9169a (diff) |
Fix a typo found by codespell in a variable name
The change is limited to a single C file.
CLA: trivial
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20912)
Diffstat (limited to 'crypto/bn')
-rw-r--r-- | crypto/bn/bn_lib.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c index ca474a4f07..e810647f57 100644 --- a/crypto/bn/bn_lib.c +++ b/crypto/bn/bn_lib.c @@ -426,11 +426,11 @@ int BN_set_word(BIGNUM *a, BN_ULONG w) return 1; } -typedef enum {BIG, LITTLE} endianess_t; +typedef enum {BIG, LITTLE} endianness_t; typedef enum {SIGNED, UNSIGNED} signedness_t; static BIGNUM *bin2bn(const unsigned char *s, int len, BIGNUM *ret, - endianess_t endianess, signedness_t signedness) + endianness_t endianness, signedness_t signedness) { int inc; const unsigned char *s2; @@ -464,7 +464,7 @@ static BIGNUM *bin2bn(const unsigned char *s, int len, BIGNUM *ret, * significant BIGNUM chunk, so we adapt parameters to transfer * input bytes accordingly. */ - if (endianess == LITTLE) { + if (endianness == LITTLE) { s2 = s + len - 1; inc2 = -1; inc = 1; @@ -542,7 +542,7 @@ BIGNUM *BN_signed_bin2bn(const unsigned char *s, int len, BIGNUM *ret) } static int bn2binpad(const BIGNUM *a, unsigned char *to, int tolen, - endianess_t endianess, signedness_t signedness) + endianness_t endianness, signedness_t signedness) { int inc; int n, n8; @@ -599,7 +599,7 @@ static int bn2binpad(const BIGNUM *a, unsigned char *to, int tolen, * to most significant BIGNUM limb, so we adapt parameters to * transfer output bytes accordingly. */ - if (endianess == LITTLE) { + if (endianness == LITTLE) { inc = 1; } else { inc = -1; |