Use 'extra' instead of 'cheap'

The word 'extra' better describes the sidechannel resistance gained by
re-randomising the context.
This commit is contained in:
Tobin Harding 2022-02-10 09:57:15 +00:00
parent c79eb976ca
commit c73eb2f391
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 2 additions and 2 deletions

View File

@ -413,7 +413,7 @@ impl<C: Context> Secp256k1<C> {
(bytes + word_size - 1) / word_size (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 /// Requires compilation with "rand" feature. See comment by Gregory Maxwell in
/// [libsecp256k1](https://github.com/bitcoin-core/secp256k1/commit/d2275795ff22a6f4738869f5528fbbb61738aa48). /// [libsecp256k1](https://github.com/bitcoin-core/secp256k1/commit/d2275795ff22a6f4738869f5528fbbb61738aa48).
@ -425,7 +425,7 @@ impl<C: Context> Secp256k1<C> {
self.seeded_randomize(&seed); 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; /// cryptographically-secure random data;
/// see comment in libsecp256k1 commit d2275795f by Gregory Maxwell. /// see comment in libsecp256k1 commit d2275795f by Gregory Maxwell.
pub fn seeded_randomize(&mut self, seed: &[u8; 32]) { pub fn seeded_randomize(&mut self, seed: &[u8; 32]) {