Skip to content

Commit b6b9834

Browse files
committed
small fixes
restoring wycheproof files restoring wycheproof files2
1 parent fb758fe commit b6b9834

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

examples/examples_util.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static void secure_erase(void *ptr, size_t len) {
9595
* As best as we can tell, this is sufficient to break any optimisations that
9696
* might try to eliminate "superfluous" memsets.
9797
* This method used in memzero_explicit() the Linux kernel, too. Its advantage is that it is
98-
* pretty efficient, because the compiler can still implement the memset() efficently,
98+
* pretty efficient, because the compiler can still implement the memset() efficiently,
9999
* just not remove it entirely. See "Dead Store Elimination (Still) Considered Harmful" by
100100
* Yang et al. (USENIX Security 2017) for more background.
101101
*/

include/secp256k1_ellswift.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ellswift_create(
161161
/** Given a private key, and ElligatorSwift public keys sent in both directions,
162162
* compute a shared secret using x-only Elliptic Curve Diffie-Hellman (ECDH).
163163
*
164-
* Returns: 1: shared secret was succesfully computed
164+
* Returns: 1: shared secret was successfully computed
165165
* 0: secret was invalid or hashfp returned 0
166166
* Args: ctx: pointer to a context object.
167167
* Out: output: pointer to an array to be filled by hashfp.

sage/group_prover.sage

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def normalize_factor(p):
198198
(8) * (-bx + ax)^3
199199
```
200200
"""
201-
# Assert p is not 0 and that its non-zero coeffients are coprime.
201+
# Assert p is not 0 and that its non-zero coefficients are coprime.
202202
# (We could just work with the primitive part p/p.content() but we want to be
203203
# aware if factor() does not return a primitive part in future sage versions.)
204204
assert p.content() == 1

src/ecmult.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# pragma message DEBUG_CONFIG_DEF(ECMULT_WINDOW_SIZE)
2323
#endif
2424

25-
/* Noone will ever need more than a window size of 24. The code might
25+
/* No one will ever need more than a window size of 24. The code might
2626
* be correct for larger values of ECMULT_WINDOW_SIZE but this is not
2727
* tested.
2828
*

src/ecmult_const_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ static int secp256k1_ecmult_const_xonly(secp256k1_fe* r, const secp256k1_fe *n,
276276
*
277277
* It is easy to verify that both (n*g, g^2, v) and its negation (n*g, -g^2, v) have affine X
278278
* coordinate n/d, and this holds even when the square root function doesn't have a
279-
* determinstic sign. We choose the (n*g, g^2, v) version.
279+
* deterministic sign. We choose the (n*g, g^2, v) version.
280280
*
281281
* Now switch to the effective affine curve using phi_v, where the input point has coordinates
282282
* (n*g, g^2). Compute (X, Y, Z) = q * (n*g, g^2) there.

src/field.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,14 @@ static int secp256k1_fe_cmp_var(const secp256k1_fe *a, const secp256k1_fe *b);
192192

193193
/** Set a field element equal to a provided 32-byte big endian value, reducing it.
194194
*
195-
* On input, r does not need to be initalized. a must be a pointer to an initialized 32-byte array.
195+
* On input, r does not need to be initialized. a must be a pointer to an initialized 32-byte array.
196196
* On output, r = a (mod p). It will have magnitude 1, and not be normalized.
197197
*/
198198
static void secp256k1_fe_set_b32_mod(secp256k1_fe *r, const unsigned char *a);
199199

200200
/** Set a field element equal to a provided 32-byte big endian value, checking for overflow.
201201
*
202-
* On input, r does not need to be initalized. a must be a pointer to an initialized 32-byte array.
202+
* On input, r does not need to be initialized. a must be a pointer to an initialized 32-byte array.
203203
* On output, r = a if (a < p), it will be normalized with magnitude 1, and 1 is returned.
204204
* If a >= p, 0 is returned, and r will be made invalid (and must not be used without overwriting).
205205
*/

0 commit comments

Comments
 (0)