hare

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

commit b263d63733877a326247bfeef98324e1ed54dafd
parent 5b89262d5384a98180386fc7edec7b54b3a5ed35
Author: Armin Preiml <apreiml@strohwolke.at>
Date:   Sun, 21 Nov 2021 20:30:10 +0100

rename dst to dest vars to match the other stdlib

Signed-off-by: Armin Preiml <apreiml@strohwolke.at>

Diffstat:
Mcrypto/cipher/cipher.ha | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/crypto/cipher/cipher.ha b/crypto/cipher/cipher.ha @@ -4,8 +4,8 @@ export type block = struct { nparallel: size, - encrypt: *fn(b: *block, dst: []u8, src: []u8) void, - decrypt: *fn(b: *block, dst: []u8, src: []u8) void, + encrypt: *fn(b: *block, dest: []u8, src: []u8) void, + decrypt: *fn(b: *block, dest: []u8, src: []u8) void, }; // Returns the blocksize in bytes @@ -14,10 +14,10 @@ export fn sz(b: *block) size = b.sz; // The number of blocks that can be processed at once at encrypt or decrypt export fn nparallel(b: *block) size = b.nparallel; -// Encrypt up to nparallel blocks of size sz of src data and write it to dst -export fn encrypt(b: *block, dst: []u8, src: []u8) void = - b.encrypt(b, dst, src); +// Encrypt up to nparallel blocks of size sz of src data and write it to dest +export fn encrypt(b: *block, dest: []u8, src: []u8) void = + b.encrypt(b, dest, src); -// Decrypt up to nparallel blocks of size sz of src data and write it to dst -export fn decrypt(b: *block, dst: []u8, src: []u8) void = - b.decrypt(b, dst, src); +// Decrypt up to nparallel blocks of size sz of src data and write it to dest +export fn decrypt(b: *block, dest: []u8, src: []u8) void = + b.decrypt(b, dest, src);