aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorFrank Denis <124872+jedisct1@users.noreply.github.com>2024-06-23 15:20:18 +0200
committerGitHub <noreply@github.com>2024-06-23 13:20:18 +0000
commitf3655fd07dbd30d3c7ed95d92df192a78b081a3a (patch)
tree768c605b6ecadbcab3bffaa69f502b58755f231f /lib/std
parent5f589562646b972e4f177d60c7da37e872991d29 (diff)
downloadzig-f3655fd07dbd30d3c7ed95d92df192a78b081a3a.tar.gz
zig-f3655fd07dbd30d3c7ed95d92df192a78b081a3a.zip
std.crypto.chacha: fix typo in XChaChaIETF.stream() (#20399)
Thanks to @r4gus for reporting this. Fixes #20398
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/crypto/chacha20.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/crypto/chacha20.zig b/lib/std/crypto/chacha20.zig
index 925fc0bfa6..ded0a18b49 100644
--- a/lib/std/crypto/chacha20.zig
+++ b/lib/std/crypto/chacha20.zig
@@ -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);
}
};
}