hare

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

commit bf19e35cd571d7598d57fd4b286b3c89c6c4070e
parent 00e5b0d6a983333c5d34cfce8df0435a4f51c237
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  2 May 2022 14:52:09 +0200

crypto::cipher::ctr: remove unused variables

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mcrypto/cipher/ctr.ha | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/crypto/cipher/ctr.ha b/crypto/cipher/ctr.ha @@ -61,11 +61,7 @@ export fn ctr(b: *block, iv: []u8, buf: []u8) ctr_stream = { fn ctr_stream_xor(s: *stream, dest: []u8, src: []u8) void = { let ctr = s: *ctr_stream; - const bsz = blocksz(ctr.b); - const nparallel = nparallel(ctr.b); - let i = 0z; - - for (true) { + for (let i = 0z; true) { for (ctr.xorused < len(ctr.xorbuf)) { dest[i] = src[i] ^ ctr.xorbuf[ctr.xorused]; ctr.xorused += 1;