Skip to content

Commit c73eb2f

Browse files
committed
Use 'extra' instead of 'cheap'
The word 'extra' better describes the sidechannel resistance gained by re-randomising the context.
1 parent c79eb97 commit c73eb2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ impl<C: Context> Secp256k1<C> {
413413
(bytes + word_size - 1) / word_size
414414
}
415415

416-
/// (Re)randomizes the Secp256k1 context for cheap sidechannel resistance.
416+
/// (Re)randomizes the Secp256k1 context for extra sidechannel resistance.
417417
///
418418
/// Requires compilation with "rand" feature. See comment by Gregory Maxwell in
419419
/// [libsecp256k1](https://github.com/bitcoin-core/secp256k1/commit/d2275795ff22a6f4738869f5528fbbb61738aa48).
@@ -425,7 +425,7 @@ impl<C: Context> Secp256k1<C> {
425425
self.seeded_randomize(&seed);
426426
}
427427

428-
/// (Re)randomizes the Secp256k1 context for cheap sidechannel resistance given 32 bytes of
428+
/// (Re)randomizes the Secp256k1 context for extra sidechannel resistance given 32 bytes of
429429
/// cryptographically-secure random data;
430430
/// see comment in libsecp256k1 commit d2275795f by Gregory Maxwell.
431431
pub fn seeded_randomize(&mut self, seed: &[u8; 32]) {

0 commit comments

Comments
 (0)