diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-12 18:26:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-12 18:26:39 +0100 |
| commit | c9f53fdfd70f9b90c9dfca9d01af482ce121d7c4 (patch) | |
| tree | b2a725d684c4da52757591c864828554a919db8d /core/crypto/_weierstrass/scalar_mul.odin | |
| parent | 1159110e735ba84d651f4bbc4e9883fd83e9eddc (diff) | |
| parent | c0300a33039ab003cbf105c082fe43de4b17ab96 (diff) | |
Merge pull request #6264 from Kelimion/mem_to_runtime
Replace trivial `core:mem` imports with `base:runtime`.
Diffstat (limited to 'core/crypto/_weierstrass/scalar_mul.odin')
| -rw-r--r-- | core/crypto/_weierstrass/scalar_mul.odin | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/crypto/_weierstrass/scalar_mul.odin b/core/crypto/_weierstrass/scalar_mul.odin index 108dc5d74..ac0d81a26 100644 --- a/core/crypto/_weierstrass/scalar_mul.odin +++ b/core/crypto/_weierstrass/scalar_mul.odin @@ -2,7 +2,6 @@ package _weierstrass import "core:crypto" @(require) import subtle "core:crypto/_subtle" -@(require) import "core:mem" pt_scalar_mul :: proc "contextless" ( p, a: ^$T, @@ -23,7 +22,7 @@ pt_scalar_mul :: proc "contextless" ( pt_scalar_mul_bytes(p, a, b[:], unsafe_is_vartime) if !unsafe_is_vartime { - mem.zero_explicit(&b, size_of(b)) + crypto.zero_explicit(&b, size_of(b)) } } @@ -69,7 +68,7 @@ pt_scalar_mul_bytes :: proc "contextless" ( pt_set(p, &q) if !unsafe_is_vartime { - mem.zero_explicit(&p_tbl, size_of(p_tbl)) + crypto.zero_explicit(&p_tbl, size_of(p_tbl)) pt_clear_vec([]^T{&q, &tmp}) } } @@ -116,7 +115,7 @@ when crypto.COMPACT_IMPLS == true { } if !unsafe_is_vartime { - mem.zero_explicit(&b, size_of(b)) + crypto.zero_explicit(&b, size_of(b)) pt_clear(&tmp) } } |