]> git.codecow.com Git - libnemo.git/commitdiff
Remove subarray function call bounds checking.
authorChris Duncan <chris@zoso.dev>
Sun, 17 Aug 2025 09:45:16 +0000 (02:45 -0700)
committerChris Duncan <chris@zoso.dev>
Sun, 17 Aug 2025 09:45:16 +0000 (02:45 -0700)
src/lib/crypto/nano-nacl.ts

index 80f43d8c88c35e565b4b728b77f4885bb064a152..c1e401d67096496ed0ad9bde80bff4054b4bc9c1 100644 (file)
@@ -83,7 +83,7 @@ export class NanoNaCl {
                let b: number\r
                const m: Float64Array = new Float64Array(16)\r
                const t: Float64Array = new Float64Array(16)\r
-               t.set(n.subarray(0, 16), 0)\r
+               t.set(n, 0)\r
                this.car25519(t)\r
                this.car25519(t)\r
                this.car25519(t)\r