hare

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

commit d16e7316eedf52cae45b7ffa6b5af9a4c1936553
parent a95ddfea79d51aa590edf6948abf4fc988c362d5
Author: Armin Preiml <apreiml@strohwolke.at>
Date:   Thu, 23 Dec 2021 20:52:54 +0100

remove trailing spaces

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

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

diff --git a/crypto/cipher/cbc.ha b/crypto/cipher/cbc.ha @@ -17,7 +17,7 @@ export type cbc_mode = struct { export fn cbc_encryptor(b: *block, iv: []u8, buf: []u8) cbc_mode = { assert(len(iv) == blocksz(b), "len(iv) must be the same as the block size"); - assert(len(buf) == blocksz(b) * 2, + assert(len(buf) == blocksz(b) * 2, "buffer needs to be two times of the block size"); const bsz = blocksz(b); @@ -42,7 +42,7 @@ export fn cbc_encryptor(b: *block, iv: []u8, buf: []u8) cbc_mode = { export fn cbc_decryptor(b: *block, iv: []u8, buf: []u8) cbc_mode = { assert(len(iv) == blocksz(b), "len(iv) must be the same as block length sz"); - assert(len(buf) == blocksz(b) * 2, + assert(len(buf) == blocksz(b) * 2, "buffer needs to be two times of the block size"); const bsz = blocksz(b);