Skip to content

Commit

Permalink
std.crypto.chacha: fix typo in XChaChaIETF.stream() (ziglang#20399)
Browse files Browse the repository at this point in the history
Thanks to @r4gus for reporting this.

Fixes ziglang#20398
  • Loading branch information
jedisct1 authored Jun 23, 2024
1 parent 5f58956 commit f3655fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/crypto/chacha20.zig
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ fn XChaChaIETF(comptime rounds_nb: usize) type {
/// Write the output of the XChaCha20 stream cipher into `out`.
pub fn stream(out: []u8, counter: u32, key: [key_length]u8, nonce: [nonce_length]u8) void {
const extended = extend(key, nonce, rounds_nb);
ChaChaIETF(rounds_nb).xor(out, counter, extended.key, extended.nonce);
ChaChaIETF(rounds_nb).stream(out, counter, extended.key, extended.nonce);
}
};
}
Expand Down

0 comments on commit f3655fd

Please sign in to comment.