]> git.codecow.com Git - nano25519.git/commitdiff
Fix import path in tests.
authorChris Duncan <chris@codecow.com>
Wed, 4 Nov 2026 14:07:43 +0000 (06:07 -0800)
committerChris Duncan <chris@codecow.com>
Wed, 4 Nov 2026 14:07:43 +0000 (06:07 -0800)
test/arithmetic.mjs
test/mutants.mjs

index 3cbd33670811dc8484f5730f346614735d0e57d4..bd2a7260225eb176273f76fdd9a63be199e2618a 100644 (file)
@@ -165,13 +165,13 @@ export function verify_signature_ (): i32 { return verify_signature(U8W) ? 1 : 0
 `
 
 /** Seeded controls: each `from` must occur once inside its `fn`. */
-const NO_IDENTITY = [{ file: 'src/assembly/ed25519/ge.ts', fn: 'ge_double_scalarmult_vartime_to_p3', from: '\n\tp3_0(r)', to: '' }]
-const STALE_T = [{ file: 'src/assembly/ed25519/ge.ts', fn: 'ge_double_scalarmult_vartime_to_p3', from: 'p1p1_to_p3(r, t)', to: 'p1p1_to_p3(r, t)\n\t\t\tfe_mul(r.T, r.X, r.Y)' }]
+const NO_IDENTITY = [{ file: 'src/assembly/ed25519/ge/ge.ts', fn: 'ge_double_scalarmult_vartime_to_p3', from: '\n\tp3_0(r)', to: '' }]
+const STALE_T = [{ file: 'src/assembly/ed25519/ge/ge.ts', fn: 'ge_double_scalarmult_vartime_to_p3', from: 'p1p1_to_p3(r, t)', to: 'p1p1_to_p3(r, t)\n\t\t\tfe_mul(r.T, r.X, r.Y)' }]
 const NO_PRECONDITIONS = [
        { file: 'src/assembly/crypto_verify.ts', fn: 'verify_pubkey', from: 'if (ge_is_canonical(pub) != 0) {', to: 'if (false) {' },
        { file: 'src/assembly/crypto_verify.ts', fn: 'verify_signature', from: 'if (ge_is_canonical(sig) != 0) {', to: 'if (false) {' },
-       { file: 'src/assembly/ed25519/ge.ts', fn: 'ge_accept_small_order', from: 'return 0 - (malformed | (small_order ^ 1))', to: 'return 0 - (small_order ^ 1)' },
-       { file: 'src/assembly/ed25519/ge.ts', fn: 'ge_reject_small_order', from: 'return 0 - (malformed | small_order)', to: 'return 0 - small_order' },
+       { file: 'src/assembly/ed25519/ge/ge.ts', fn: 'ge_accept_small_order', from: 'return 0 - (malformed | (small_order ^ 1))', to: 'return 0 - (small_order ^ 1)' },
+       { file: 'src/assembly/ed25519/ge/ge.ts', fn: 'ge_reject_small_order', from: 'return 0 - (malformed | small_order)', to: 'return 0 - small_order' },
 ]
 
 /** Copies the sources, exports memory, adds the harness, applies any edits, and compiles. */
index 3a9a5e2ae548e6c0b3a2ed19a868e72138b2f0b8..7acf3fb1eb6a96f1fc389a6e11ed84a8e0001825 100644 (file)
@@ -27,7 +27,7 @@ const work = new URL('build/mutants/', root)
 const asc = new URL('node_modules/assemblyscript/bin/asc.js', root).pathname
 
 const EQUALBYTES = { fn: 'equalbytes', file: 'src/assembly/ed25519/utils.ts', codes: 'ERROR_EQUALBYTES_SELFTEST_' }
-const GE_IS_CANONICAL = { fn: 'ge_is_canonical', file: 'src/assembly/ed25519/ge.ts', codes: 'ERROR_GE_IS_CANONICAL_SELFTEST_' }
+const GE_IS_CANONICAL = { fn: 'ge_is_canonical', file: 'src/assembly/ed25519/ge/ge.ts', codes: 'ERROR_GE_IS_CANONICAL_SELFTEST_' }
 const FE_ISZERO = { fn: 'fe_iszero', file: 'src/assembly/ed25519/fe.ts', codes: 'ERROR_FE_ISZERO_SELFTEST_' }
 
 /**