From 713751918ebb32c9a69962ad8a63e1ca55d1502f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Mon, 13 Oct 2025 15:58:07 +0300 Subject: [PATCH] chacha20: fix footnote in RNG docs --- chacha20/src/rng.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/chacha20/src/rng.rs b/chacha20/src/rng.rs index a65b4a6c..4c483442 100644 --- a/chacha20/src/rng.rs +++ b/chacha20/src/rng.rs @@ -240,7 +240,7 @@ macro_rules! impl_chacha_rng { /// rounds is the minimum potentially secure configuration, and 20 rounds is widely used as a /// conservative choice. /// - /// We use a 64-bit counter and 64-bit stream identifier as in Bernstein's implementation[^3] + /// We use a 64-bit counter and 64-bit stream identifier as in Bernstein's implementation /// except that we use a stream identifier in place of a nonce. A 64-bit counter over 64-byte /// (16 word) blocks allows 1 ZiB of output before cycling, and the stream identifier allows /// 264 unique streams of output per seed. Both counter and stream are initialized @@ -291,11 +291,9 @@ macro_rules! impl_chacha_rng { /// /// The other Rngs from this crate are initialized similarly. /// - /// [^1]: D. J. Bernstein, [*ChaCha, a variant of Salsa20*]( - /// https://cr.yp.to/chacha.html) + /// [^1]: D. J. Bernstein, [*ChaCha, a variant of Salsa20*](https://cr.yp.to/chacha.html) /// - /// [^2]: [eSTREAM: the ECRYPT Stream Cipher Project]( - /// http://www.ecrypt.eu.org/stream/) + /// [^2]: [eSTREAM: the ECRYPT Stream Cipher Project](http://www.ecrypt.eu.org/stream/) pub struct $ChaChaXRng { /// The ChaChaCore struct pub core: BlockRng<$ChaChaXCore>,