Skip to content

Commit

Permalink
chacha20: fix IETF URLs (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeisler authored Jun 17, 2024
1 parent 5e19de3 commit 78ea0b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chacha20/src/xchacha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub type XNonce = Array<u8, U24>;
/// several interoperable libraries and protocols (e.g. libsodium, WireGuard)
/// and is documented in an (expired) IETF draft:
///
/// <https://tools.ietf.org/html/draft-arciszewski-xchacha-03>
/// <https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha>
pub type XChaCha20 = StreamCipherCoreWrapper<XChaChaCore<R20>>;
/// XChaCha12 stream cipher (reduced-round variant of [`XChaCha20`] with 12 rounds)
pub type XChaCha12 = StreamCipherCoreWrapper<XChaChaCore<R12>>;
Expand Down Expand Up @@ -159,7 +159,7 @@ mod hchacha20_tests {
use hex_literal::hex;

/// Test vectors from:
/// https://tools.ietf.org/id/draft-arciszewski-xchacha-03.html#rfc.section.2.2.1
/// https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha#section-2.2.1
#[test]
fn test_vector() {
const KEY: [u8; 32] = hex!(
Expand Down

0 comments on commit 78ea0b2

Please sign in to comment.