Skip to content

Commit dcce2d6

Browse files
authored
chacha20: fix footnote in RNG docs (#469)
1 parent 969ae9b commit dcce2d6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

chacha20/src/rng.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ macro_rules! impl_chacha_rng {
240240
/// rounds is the minimum potentially secure configuration, and 20 rounds is widely used as a
241241
/// conservative choice.
242242
///
243-
/// We use a 64-bit counter and 64-bit stream identifier as in Bernstein's implementation[^3]
243+
/// We use a 64-bit counter and 64-bit stream identifier as in Bernstein's implementation
244244
/// except that we use a stream identifier in place of a nonce. A 64-bit counter over 64-byte
245245
/// (16 word) blocks allows 1 ZiB of output before cycling, and the stream identifier allows
246246
/// 2<sup>64</sup> unique streams of output per seed. Both counter and stream are initialized
@@ -291,11 +291,9 @@ macro_rules! impl_chacha_rng {
291291
///
292292
/// The other Rngs from this crate are initialized similarly.
293293
///
294-
/// [^1]: D. J. Bernstein, [*ChaCha, a variant of Salsa20*](
295-
/// https://cr.yp.to/chacha.html)
294+
/// [^1]: D. J. Bernstein, [*ChaCha, a variant of Salsa20*](https://cr.yp.to/chacha.html)
296295
///
297-
/// [^2]: [eSTREAM: the ECRYPT Stream Cipher Project](
298-
/// http://www.ecrypt.eu.org/stream/)
296+
/// [^2]: [eSTREAM: the ECRYPT Stream Cipher Project](http://www.ecrypt.eu.org/stream/)
299297
pub struct $ChaChaXRng {
300298
/// The ChaChaCore struct
301299
pub core: BlockRng<$ChaChaXCore>,

0 commit comments

Comments
 (0)