| ... | @@ -632,7 +632,7 @@ fn XChaChaIETF(comptime rounds_nb: usize) type { | ... | @@ -632,7 +632,7 @@ fn XChaChaIETF(comptime rounds_nb: usize) type { |
| 632 | /// Write the output of the XChaCha20 stream cipher into `out`. | 632 | /// Write the output of the XChaCha20 stream cipher into `out`. |
| 633 | pub fn stream(out: []u8, counter: u32, key: [key_length]u8, nonce: [nonce_length]u8) void { | 633 | pub fn stream(out: []u8, counter: u32, key: [key_length]u8, nonce: [nonce_length]u8) void { |
| 634 | const extended = extend(key, nonce, rounds_nb); | 634 | const extended = extend(key, nonce, rounds_nb); |
| 635 | ChaChaIETF(rounds_nb).xor(out, counter, extended.key, extended.nonce); | 635 | ChaChaIETF(rounds_nb).stream(out, counter, extended.key, extended.nonce); |
| 636 | } | 636 | } |
| 637 | }; | 637 | }; |
| 638 | } | 638 | } |