mirror of
https://github.com/ziglang/zig.git
synced 2026-01-06 21:43:25 +00:00
std.crypto.chacha: fix typo in XChaChaIETF.stream() (#20399)
Thanks to @r4gus for reporting this. Fixes #20398
This commit is contained in:
parent
5f58956264
commit
f3655fd07d
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user