Update to new io interface
This commit is contained in:
1 parent
4c17e2e97e
commit
3f6775e29b
49 files changed
+504
-852
No files matched your search
Vendored
+1
-1
@@ -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))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user