aboutsummaryrefslogtreecommitdiff
path: root/core/crypto/sha2
diff options
context:
space:
mode:
authorzhibog <zhibog-github@web.de>2021-10-16 18:46:18 +0200
committerzhibog <zhibog-github@web.de>2021-10-16 18:46:18 +0200
commitb7a0627d09e431c94aadded546bd9f3dfbe1cb1c (patch)
tree9e63a8d2aea020c2c9705e319ad466f2b27d31f8 /core/crypto/sha2
parentc632125d82166cbf6ec433986c0570566cf0b0b9 (diff)
Remove the read_entire_file from the crypto utils and now use the one within core:os
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 2f7d44a21..2ddbcf27a 100644
--- a/core/crypto/sha2/sha2.odin
+++ b/core/crypto/sha2/sha2.odin
@@ -274,7 +274,7 @@ hash_file_odin_28 :: #force_inline proc(ctx: ^_ctx.Hash_Context, hd: os.Handle,
if !load_at_once {
return hash_stream_odin_28(ctx, os.stream_from_handle(hd))
} else {
- if buf, ok := util.read_entire_file(hd); ok {
+ if buf, ok := os.read_entire_file(hd); ok {
return hash_bytes_odin_28(ctx, buf[:]), ok
}
}
@@ -315,7 +315,7 @@ hash_file_odin_32 :: #force_inline proc(ctx: ^_ctx.Hash_Context, hd: os.Handle,
if !load_at_once {
return hash_stream_odin_32(ctx, os.stream_from_handle(hd))
} else {
- if buf, ok := util.read_entire_file(hd); ok {
+ if buf, ok := os.read_entire_file(hd); ok {
return hash_bytes_odin_32(ctx, buf[:]), ok
}
}
@@ -356,7 +356,7 @@ hash_file_odin_48 :: #force_inline proc(ctx: ^_ctx.Hash_Context, hd: os.Handle,
if !load_at_once {
return hash_stream_odin_48(ctx, os.stream_from_handle(hd))
} else {
- if buf, ok := util.read_entire_file(hd); ok {
+ if buf, ok := os.read_entire_file(hd); ok {
return hash_bytes_odin_48(ctx, buf[:]), ok
}
}
@@ -397,7 +397,7 @@ hash_file_odin_64 :: #force_inline proc(ctx: ^_ctx.Hash_Context, hd: os.Handle,
if !load_at_once {
return hash_stream_odin_64(ctx, os.stream_from_handle(hd))
} else {
- if buf, ok := util.read_entire_file(hd); ok {
+ if buf, ok := os.read_entire_file(hd); ok {
return hash_bytes_odin_64(ctx, buf[:]), ok
}
}