aboutsummaryrefslogtreecommitdiff
path: root/core/crypto/sha2
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-06-08 16:38:57 +0100
committergingerBill <bill@gingerbill.org>2023-06-08 16:38:57 +0100
commit9ee4b76cd950e5eef9d480831670ae7bcff64775 (patch)
treeb3dd5c9074cf1c26ff2e169fe2b92c7998ce6e48 /core/crypto/sha2
parent3f6775e29b2378d189cca72733cf8953681281e4 (diff)
Just make the `io.Reader` etc aliases
Diffstat (limited to 'core/crypto/sha2')
-rw-r--r--core/crypto/sha2/sha2.odin8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/crypto/sha2/sha2.odin b/core/crypto/sha2/sha2.odin
index cbd3a6b39..0f55c4be1 100644
--- a/core/crypto/sha2/sha2.odin
+++ b/core/crypto/sha2/sha2.odin
@@ -74,7 +74,7 @@ hash_stream_224 :: proc(s: io.Stream) -> ([DIGEST_SIZE_224]byte, bool) {
defer delete(buf)
read := 1
for read > 0 {
- read, _ = io.read({s}, buf)
+ read, _ = io.read(s, buf)
if read > 0 {
update(&ctx, buf[:read])
}
@@ -153,7 +153,7 @@ hash_stream_256 :: proc(s: io.Stream) -> ([DIGEST_SIZE_256]byte, bool) {
defer delete(buf)
read := 1
for read > 0 {
- read, _ = io.read({s}, buf)
+ read, _ = io.read(s, buf)
if read > 0 {
update(&ctx, buf[:read])
}
@@ -232,7 +232,7 @@ hash_stream_384 :: proc(s: io.Stream) -> ([DIGEST_SIZE_384]byte, bool) {
defer delete(buf)
read := 1
for read > 0 {
- read, _ = io.read({s}, buf)
+ read, _ = io.read(s, buf)
if read > 0 {
update(&ctx, buf[:read])
}
@@ -311,7 +311,7 @@ hash_stream_512 :: proc(s: io.Stream) -> ([DIGEST_SIZE_512]byte, bool) {
defer delete(buf)
read := 1
for read > 0 {
- read, _ = io.read({s}, buf)
+ read, _ = io.read(s, buf)
if read > 0 {
update(&ctx, buf[:read])
}