Skip to content

Commit

Permalink
Fix a typo found by codespell in a variable name
Browse files Browse the repository at this point in the history
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 #20912)
  • Loading branch information
DimitriPapadopoulos authored and paulidale committed May 11, 2023
1 parent 316d5a9 commit 060f370
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crypto/bn/bn_lib.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 060f370

Please sign in to comment.