diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-12 16:52:25 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-12 16:52:25 +0100 |
| commit | cde6dc1f20cab725959713a24b87ef7e0bd35d24 (patch) | |
| tree | 53dd113b0636110bf8f21350279e83b04c1e0075 /core/crypto/aes/aes_ctr.odin | |
| parent | af80dfe9953cae85b37ec9c0e80e278976f1aff9 (diff) | |
Remove `core:mem` import from `core:crypto`.
Diffstat (limited to 'core/crypto/aes/aes_ctr.odin')
| -rw-r--r-- | core/crypto/aes/aes_ctr.odin | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/crypto/aes/aes_ctr.odin b/core/crypto/aes/aes_ctr.odin index a74133235..9d7a0b80b 100644 --- a/core/crypto/aes/aes_ctr.odin +++ b/core/crypto/aes/aes_ctr.odin @@ -4,7 +4,6 @@ import "core:bytes" import "core:crypto/_aes/ct64" import "core:encoding/endian" import "core:math/bits" -import "core:mem" // CTR_IV_SIZE is the size of the CTR mode IV in bytes. CTR_IV_SIZE :: 16 @@ -117,7 +116,7 @@ reset_ctr :: proc "contextless" (ctx: ^Context_CTR) { ctx._off = 0 ctx._ctr_hi = 0 ctx._ctr_lo = 0 - mem.zero_explicit(&ctx._buffer, size_of(ctx._buffer)) + zero_explicit(&ctx._buffer, size_of(ctx._buffer)) ctx._is_initialized = false } @@ -172,7 +171,7 @@ ctr_blocks :: proc(ctx: ^Context_CTR, dst, src: []byte, nr_blocks: int) #no_boun // Write back the counter. ctx._ctr_hi, ctx._ctr_lo = ctr_hi, ctr_lo - mem.zero_explicit(&tmp, size_of(tmp)) + zero_explicit(&tmp, size_of(tmp)) } @(private) |