Skip to content

Commit

Permalink
Use 'extra' instead of 'cheap'
Browse files Browse the repository at this point in the history
The word 'extra' better describes the sidechannel resistance gained by
re-randomising the context.
  • Loading branch information
tcharding committed Feb 10, 2022
1 parent c79eb97 commit c73eb2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ impl<C: Context> Secp256k1<C> {
(bytes + word_size - 1) / word_size
}

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

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

0 comments on commit c73eb2f

Please sign in to comment.