hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit a8fed5bf28773b261a5bb053bc2c8a5e85afacc9
parent 9016348e9432537b243f598fd54792eac2b32a44
Author: Gusted <postmaster@gusted.xyz>
Date:   Tue,  2 Jan 2024 20:31:20 +0100

Fix typo in crypto::chachapoly

Noticed this typo while reading the source code.

Signed-off-by: Gusted <postmaster@gusted.xyz>

Diffstat:
Mcrypto/chachapoly/chachapoly.ha | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/chachapoly/chachapoly.ha b/crypto/chachapoly/chachapoly.ha @@ -55,7 +55,7 @@ const vtable: io::vtable = io::vtable { type initfunc = fn (s: *chacha::stream, h: io::handle, k: []u8, n: []u8) void; -// Initialises the stream as Chacha20-Poly1305. Encrypts to or decrypts form +// Initialises the stream as Chacha20-Poly1305. Encrypts to or decrypts from // 'h'. 'nonce' must be a random value that will only be used once. Additional // data can be passed as 'ad'. export fn init( @@ -66,7 +66,7 @@ export fn init( ad: const []u8... ) void = geninit(s, &chacha::chacha20_init, h, key, nonce, ad...); -// Initialise the stream as XChacha20-Poly1305. Encrypts to or decrypts form +// Initialise the stream as XChacha20-Poly1305. Encrypts to or decrypts from // 'h'. 'nonce' must be a random value that will only be used once. Additional // data can be passed as 'ad'. export fn xinit(