Skip to content

Commit 0aca333

Browse files
committed
Rename ExtPoint::invert() to ExtPoint::invert_vartime().
The function is probably constant-time, but it is only used in contexts where constant-time behavior isn't required. If/when we use it in more sensitive contexts, we'll reevaluate this.
1 parent 1e7be53 commit 0aca333

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ec/eddsa.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl signature::VerificationAlgorithm for EdDSAParameters {
201201
try!(bssl::map_result(unsafe {
202202
GFp_x25519_ge_frombytes_vartime(&mut a, public_key)
203203
}));
204-
a.invert();
204+
a.invert_vartime();
205205

206206
let h_digest =
207207
eddsa_digest(signature_r, public_key, msg.as_slice_less_safe());
@@ -287,7 +287,7 @@ impl ExtPoint {
287287
}
288288
}
289289

290-
fn invert(&mut self) {
290+
fn invert_vartime(&mut self) {
291291
for i in 0..ELEM_LIMBS {
292292
self.x[i] = -self.x[i];
293293
self.t[i] = -self.t[i];

0 commit comments

Comments
 (0)