aboutsummaryrefslogtreecommitdiff
path: root/core/crypto/legacy/md5/md5.odin
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2026-02-12 18:26:39 +0100
committerGitHub <noreply@github.com>2026-02-12 18:26:39 +0100
commitc9f53fdfd70f9b90c9dfca9d01af482ce121d7c4 (patch)
treeb2a725d684c4da52757591c864828554a919db8d /core/crypto/legacy/md5/md5.odin
parent1159110e735ba84d651f4bbc4e9883fd83e9eddc (diff)
parentc0300a33039ab003cbf105c082fe43de4b17ab96 (diff)
Merge pull request #6264 from Kelimion/mem_to_runtime
Replace trivial `core:mem` imports with `base:runtime`.
Diffstat (limited to 'core/crypto/legacy/md5/md5.odin')
-rw-r--r--core/crypto/legacy/md5/md5.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/crypto/legacy/md5/md5.odin b/core/crypto/legacy/md5/md5.odin
index d9d74d498..399a789ed 100644
--- a/core/crypto/legacy/md5/md5.odin
+++ b/core/crypto/legacy/md5/md5.odin
@@ -18,9 +18,9 @@ package md5
zhibog, dotbmp: Initial implementation.
*/
+import "core:crypto"
import "core:encoding/endian"
import "core:math/bits"
-import "core:mem"
// DIGEST_SIZE is the MD5 digest size in bytes.
DIGEST_SIZE :: 16
@@ -100,7 +100,7 @@ final :: proc(ctx: ^Context, hash: []byte, finalize_clone: bool = false) {
i += 1
}
transform(ctx, ctx.data[:])
- mem.set(&ctx.data, 0, 56)
+ crypto.set(&ctx.data, 0, 56)
}
ctx.bitlen += u64(ctx.datalen * 8)
@@ -124,7 +124,7 @@ reset :: proc(ctx: ^$T) {
return
}
- mem.zero_explicit(ctx, size_of(ctx^))
+ crypto.zero_explicit(ctx, size_of(ctx^))
}
/*