projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a typo found by codespell in a variable name
[openssl.git]
/
crypto
/
bn
/
bn_lib.c
diff --git
a/crypto/bn/bn_lib.c
b/crypto/bn/bn_lib.c
index ca474a4f07af4b8d407e02ae409de51511bfeb0f..e810647f578fa7def27a04520421d9e15be689bb 100644
(file)
--- 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;
}
return 1;
}
-typedef enum {BIG, LITTLE} endianess_t;
+typedef enum {BIG, LITTLE} endian
n
ess_t;
typedef enum {SIGNED, UNSIGNED} signedness_t;
static BIGNUM *bin2bn(const unsigned char *s, int len, BIGNUM *ret,
typedef enum {SIGNED, UNSIGNED} signedness_t;
static BIGNUM *bin2bn(const unsigned char *s, int len, BIGNUM *ret,
- endian
ess_t endia
ness, signedness_t signedness)
+ endian
ness_t endian
ness, signedness_t signedness)
{
int inc;
const unsigned char *s2;
{
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.
*/
* significant BIGNUM chunk, so we adapt parameters to transfer
* input bytes accordingly.
*/
- if (endianess == LITTLE) {
+ if (endian
n
ess == LITTLE) {
s2 = s + len - 1;
inc2 = -1;
inc = 1;
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,
}
static int bn2binpad(const BIGNUM *a, unsigned char *to, int tolen,
- endian
ess_t endia
ness, signedness_t signedness)
+ endian
ness_t endian
ness, signedness_t signedness)
{
int inc;
int n, n8;
{
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.
*/
* to most significant BIGNUM limb, so we adapt parameters to
* transfer output bytes accordingly.
*/
- if (endianess == LITTLE) {
+ if (endian
n
ess == LITTLE) {
inc = 1;
} else {
inc = -1;
inc = 1;
} else {
inc = -1;