hare

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

commit e9aaaa82308ad34f7b56460b6a8d55698d8e252d
parent 56e386d539aced17fda09f1de51caf6356e6a6f2
Author: Bor Grošelj Simić <bor.groseljsimic@telemach.net>
Date:   Mon, 19 Apr 2021 20:46:13 +0200

crypto: fix hash test cleanups

Diffstat:
Mcrypto/md5/+test.ha | 2+-
Mcrypto/sha1/+test.ha | 2+-
Mcrypto/sha256/+test.ha | 2+-
Mcrypto/sha512/+test.ha | 8++++----
4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/crypto/md5/+test.ha b/crypto/md5/+test.ha @@ -6,7 +6,7 @@ use io; @test fn md5() void = { let md5 = md5(); - defer hash::finish(md5); + defer hash::close(md5); const vectors = [ ("", "d41d8cd98f00b204e9800998ecf8427e"), diff --git a/crypto/sha1/+test.ha b/crypto/sha1/+test.ha @@ -6,7 +6,7 @@ use io; @test fn sha1() void = { let sha = sha1(); - defer hash::finish(sha); + defer hash::close(sha); const vectors = [ ("", "da39a3ee5e6b4b0d3255bfef95601890afd80709"), diff --git a/crypto/sha256/+test.ha b/crypto/sha256/+test.ha @@ -6,7 +6,7 @@ use strio; @test fn sha256() void = { let sha = sha256(); - defer hash::finish(sha); + defer hash::close(sha); const vectors = [ ("", "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"), diff --git a/crypto/sha512/+test.ha b/crypto/sha512/+test.ha @@ -6,7 +6,7 @@ use io; @test fn sha512() void = { let sha = sha512(); - defer hash::finish(sha); + defer hash::close(sha); const vectors = [ ("abc", "ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f"), @@ -45,7 +45,7 @@ use io; @test fn sha512_224() void = { let sha = sha512_224(); - defer hash::finish(sha); + defer hash::close(sha); const vectors = [ ("", "6ed0dd02806fa89e25de060c19d3ac86cabb87d6a0ddd05c333b84f4"), @@ -77,7 +77,7 @@ use io; @test fn sha512_256() void = { let sha = sha512_256(); - defer hash::finish(sha); + defer hash::close(sha); const vectors = [ ("", "c672b8d1ef56ed28ab87c3622c5114069bdd3ad7b8f9737498d0c01ecef0967a"), ("abc", "53048e2681941ef99b2e29b76b4c7dabe4c2d0c634fc6d46e0e2f13107e7af23"), @@ -109,7 +109,7 @@ use io; @test fn sha384() void = { let sha = sha384(); - defer hash::finish(sha); + defer hash::close(sha); const vectors = [ ("", "38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b"), ("abc", "cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7"),