Update to new io interface

This commit is contained in:
gingerBill committed 2023-06-08 16:35:24 +01:00
1 parent 4c17e2e97e
commit 3f6775e29b
49 files changed
+504 -852

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ hash_stream :: proc(s: io.Stream) -> ([DIGEST_SIZE]byte, bool) {
defer delete(buf)
i := 1
for i > 0 {
i, _ = s->impl_read(buf)
i, _ = io.read({s}, buf)
if i > 0 {
botan.hash_update(ctx, len(buf) == 0 ? nil : &buf[0], uint(i))
}