Skip to content

Commit 83ddc4b

Browse files
authored
fix typos (#740)
1 parent ea6ffc3 commit 83ddc4b

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

curve25519-dalek/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ besides the `rand_core` version bump, there are no other user-visible changes.
216216
for very large input sizes.
217217
* Add a more extensive randomized multiscalar multiplication consistency check
218218
to the test suite to prevent regressions.
219-
* Ensure that that multiscalar and NAF computations work correctly on extremal
219+
* Ensure that multiscalar and NAF computations work correctly on extremal
220220
`Scalar` values constructed via `from_bits`.
221221

222222
### 1.2.0

curve25519-dalek/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Curve arithmetic is implemented and used by one of the following backends:
9999

100100
At runtime, `curve25519-dalek` selects an arithmetic backend from the set of backends it was compiled to support. For Intel x86-64 targets, unless otherwise specified, it will build itself with `simd` support, and default to `serial` at runtime if the appropriate CPU features aren't detected. See [SIMD backend] for more details.
101101

102-
In the future, `simd` backend may be extended to cover more instruction sets. This change will be non-breaking as this is considered as implementation detail.
102+
In the future, `simd` backend may be extended to cover more instruction sets. This change will be non-breaking as this is considered an implementation detail.
103103

104104
## Manual Backend Override
105105

curve25519-dalek/docs/ifma-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ i3-8121U) executes 512-bit IFMA instructions at half rate compared to
136136
using 512-bit IFMA instructions, and this implementation uses 256-bit
137137
vectors.
138138

139-
To extend this to 512-bit vectors, it's only only necessary to achieve
139+
To extend this to 512-bit vectors, it's only necessary to achieve
140140
2-way parallelism, and it's possible (with a small amount of overhead)
141141
to create a hybrid strategy that operates entirely within 128-bit
142142
lanes. This means that cross-lane operations can use the faster

curve25519-dalek/src/backend/serial/curve_models/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
//! and passed to \\( \mathbb P\^2 \\) by setting \\( x = W\_1 / W\_3
7070
//! \\), \\(y = W\_2 / W\_3 \\).
7171
//! Up to variable naming, this is the projective representation
72-
//! introduced in in [_Twisted Edwards
72+
//! introduced in [_Twisted Edwards
7373
//! Curves_][bernstein-birkner-joye-lange-peters-2008] by Bernstein,
7474
//! Birkner, Joye, Lange, and Peters. In `curve25519-dalek`, it is
7575
//! represented by the `ProjectivePoint` struct.

curve25519-dalek/src/backend/serial/scalar_mul/pippenger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use crate::traits::VartimeMultiscalarMul;
3131
/// Bucket 0 is not needed as it would contain points multiplied by 0.
3232
/// 2. Convert scalars to a radix-`2^w` representation with signed digits in `[-2^w/2, 2^w/2]`.
3333
/// Note: only the last digit may equal `2^w/2`.
34-
/// 3. Starting with the last window, for each point `i=[0..n)` add it to a a bucket indexed by
34+
/// 3. Starting with the last window, for each point `i=[0..n)` add it to a bucket indexed by
3535
/// the point's scalar's value in the window.
3636
/// 4. Once all points in a window are sorted into buckets, add buckets by multiplying each
3737
/// by their index. Efficient way of doing it is to start with the last bucket and compute two sums:

curve25519-dalek/src/scalar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2043,7 +2043,7 @@ pub(crate) mod test {
20432043

20442044
// Check that a * b == a.reduce() * a.reduce() for ANY scalars a,b, even ones that violate
20452045
// invariant #1, i.e., a,b > 2^255. Old versions of ed25519-dalek did multiplication where a
2046-
// was reduced and b was clamped and unreduced. This checks that that was always well-defined.
2046+
// was reduced and b was clamped and unreduced. This checks that was always well-defined.
20472047
#[test]
20482048
fn test_mul_reduction_invariance() {
20492049
let mut rng = rand::thread_rng();

0 commit comments

Comments
 (0)