aboutsummaryrefslogtreecommitdiff
path: root/core/crypto
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2025-03-23 19:17:18 +0900
committerYawning Angel <yawning@schwanenlied.me>2025-03-23 19:17:18 +0900
commit38665431dd173fb0d9096da59f0a7528ebe754f7 (patch)
tree72132e709112626f7fb798a5831ea4b822436503 /core/crypto
parent2f301e46dc21e6a4660ac669a5ffb20e2f2297dd (diff)
core/crypto/_aes/ct64: Disable bounds checking
Diffstat (limited to 'core/crypto')
-rw-r--r--core/crypto/_aes/ct64/helpers.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/crypto/_aes/ct64/helpers.odin b/core/crypto/_aes/ct64/helpers.odin
index 4f2d9800c..7eec5bdc4 100644
--- a/core/crypto/_aes/ct64/helpers.odin
+++ b/core/crypto/_aes/ct64/helpers.odin
@@ -4,7 +4,7 @@ import "core:crypto/_aes"
import "core:encoding/endian"
@(require_results)
-load_interleaved :: proc "contextless" (src: []byte) -> (u64, u64) {
+load_interleaved :: proc "contextless" (src: []byte) -> (u64, u64) #no_bounds_check {
w0 := endian.unchecked_get_u32le(src[0:])
w1 := endian.unchecked_get_u32le(src[4:])
w2 := endian.unchecked_get_u32le(src[8:])
@@ -12,7 +12,7 @@ load_interleaved :: proc "contextless" (src: []byte) -> (u64, u64) {
return interleave_in(w0, w1, w2, w3)
}
-store_interleaved :: proc "contextless" (dst: []byte, a0, a1: u64) {
+store_interleaved :: proc "contextless" (dst: []byte, a0, a1: u64) #no_bounds_check {
w0, w1, w2, w3 := interleave_out(a0, a1)
endian.unchecked_put_u32le(dst[0:], w0)
endian.unchecked_put_u32le(dst[4:], w1)