]>
git.codecow.com Git - nano25519.git/log
Chris Duncan [Mon, 28 Sep 2026 15:24:51 +0000 (08:24 -0700)]
Merge branch 'test/optimize-copy'
Chris Duncan [Mon, 28 Sep 2026 15:20:39 +0000 (08:20 -0700)]
Merge branch 'next/primordials'
Chris Duncan [Mon, 28 Sep 2026 15:18:37 +0000 (08:18 -0700)]
Eliminate more dead code.
Chris Duncan [Mon, 28 Sep 2026 15:14:15 +0000 (08:14 -0700)]
Eliminate dead code.
Chris Duncan [Mon, 28 Sep 2026 15:02:10 +0000 (08:02 -0700)]
Improve performance by eliminating extra load/store calls when loading base point precomputed values.
Chris Duncan [Mon, 28 Sep 2026 05:11:07 +0000 (22:11 -0700)]
Simplify bitwise selection with AssemblyScript shift rules.
Chris Duncan [Mon, 28 Sep 2026 04:24:39 +0000 (21:24 -0700)]
Inline another single-use utility function.
Chris Duncan [Mon, 28 Sep 2026 04:17:08 +0000 (21:17 -0700)]
Inline some base point conditional move ops.
Chris Duncan [Sun, 27 Sep 2026 08:48:37 +0000 (01:48 -0700)]
Restrict input to bytes only, no array buffers. Fix typings and test.
Chris Duncan [Sun, 27 Sep 2026 08:02:25 +0000 (01:02 -0700)]
Patch endianness flag to test big-endian function paths.
Chris Duncan [Sun, 27 Sep 2026 07:53:03 +0000 (00:53 -0700)]
Use same endian-aware buffer copy from message for keys and signatures.
Chris Duncan [Sun, 27 Sep 2026 03:00:36 +0000 (20:00 -0700)]
Revert to array-based word copy with endianness check since hardened getUint32 is way to slow getting half speed.
Chris Duncan [Sun, 27 Sep 2026 02:03:44 +0000 (19:03 -0700)]
Bind to call on declaration instead of recalling call.
Chris Duncan [Sun, 27 Sep 2026 00:17:57 +0000 (17:17 -0700)]
Update node tests.
Chris Duncan [Sat, 26 Sep 2026 16:18:53 +0000 (09:18 -0700)]
Use primordials to create and set bytes.
Chris Duncan [Sat, 26 Sep 2026 16:14:04 +0000 (09:14 -0700)]
Use primordial byteLength instead of prototype method.
Chris Duncan [Sat, 26 Sep 2026 09:14:02 +0000 (02:14 -0700)]
Fix imports.
Chris Duncan [Sat, 26 Sep 2026 09:12:27 +0000 (02:12 -0700)]
Abandon conditional word copy function selection in favor of reliability.
Chris Duncan [Sat, 26 Sep 2026 08:57:55 +0000 (01:57 -0700)]
Fix buffer handling.
Chris Duncan [Sat, 26 Sep 2026 08:55:54 +0000 (01:55 -0700)]
Fix byte offsets in big-endian path.
Chris Duncan [Sat, 26 Sep 2026 08:50:00 +0000 (01:50 -0700)]
Fix endianness of inputs on big-endian path.
Chris Duncan [Sat, 26 Sep 2026 08:48:46 +0000 (01:48 -0700)]
Use captured buffer accessor instead of prototype property.
Chris Duncan [Sat, 26 Sep 2026 08:37:19 +0000 (01:37 -0700)]
Fix Uint32Array length.
Chris Duncan [Sat, 26 Sep 2026 08:32:49 +0000 (01:32 -0700)]
Fix endian check.
Chris Duncan [Sat, 26 Sep 2026 08:16:21 +0000 (01:16 -0700)]
save copy optimization.
Chris Duncan [Sat, 26 Sep 2026 00:35:27 +0000 (17:35 -0700)]
Set custom error names in a way that esbuild will recognize.
Chris Duncan [Sat, 26 Sep 2026 00:32:03 +0000 (17:32 -0700)]
Retain custom error names when bundling.
Chris Duncan [Sat, 26 Sep 2026 00:24:34 +0000 (17:24 -0700)]
Fix failing test due to outdated error message.
Chris Duncan [Sat, 26 Sep 2026 00:19:26 +0000 (17:19 -0700)]
Fix test page signature buffer aliasing.
Chris Duncan [Fri, 25 Sep 2026 17:19:32 +0000 (10:19 -0700)]
Compute offset instead of relying on magic number.
Chris Duncan [Fri, 25 Sep 2026 16:48:13 +0000 (09:48 -0700)]
Add custom message byte length to speed test page.
Chris Duncan [Fri, 25 Sep 2026 16:33:43 +0000 (09:33 -0700)]
Refactor input copying from host to WASM to batch bytes and vastly improve performance for large message values at the boundary crossing.
Chris Duncan [Thu, 24 Sep 2026 21:04:28 +0000 (14:04 -0700)]
Fix blakegen compression step.
Chris Duncan [Thu, 24 Sep 2026 19:57:08 +0000 (12:57 -0700)]
Generate blake hashing to unroll long loops.
Chris Duncan [Thu, 24 Sep 2026 13:49:08 +0000 (06:49 -0700)]
Fix test page content.
Chris Duncan [Thu, 24 Sep 2026 06:53:46 +0000 (23:53 -0700)]
Comment doc.
Chris Duncan [Thu, 24 Sep 2026 06:50:51 +0000 (23:50 -0700)]
Move curve arithmetic into subdirectory.
Chris Duncan [Thu, 24 Sep 2026 06:44:07 +0000 (23:44 -0700)]
Include assembly subdirectories in asc checking.
Chris Duncan [Thu, 24 Sep 2026 06:42:39 +0000 (23:42 -0700)]
Refactor error code handling, eliminate dead code, and remove redundant currying.
Chris Duncan [Wed, 23 Sep 2026 21:26:06 +0000 (14:26 -0700)]
Rename env import overrides.
Chris Duncan [Wed, 23 Sep 2026 20:19:45 +0000 (13:19 -0700)]
Use custom abort handler.
Chris Duncan [Wed, 23 Sep 2026 19:41:27 +0000 (12:41 -0700)]
Clear WASM I/O buffers with host-side call to export instead of using setters and getters.
Chris Duncan [Wed, 23 Sep 2026 18:17:21 +0000 (11:17 -0700)]
Switch from direct memory access to get/set exports.
Chris Duncan [Sat, 19 Sep 2026 06:27:29 +0000 (23:27 -0700)]
Update agent file.
Chris Duncan [Sat, 19 Sep 2026 06:17:27 +0000 (23:17 -0700)]
Update agent file.
Chris Duncan [Sat, 19 Sep 2026 06:17:21 +0000 (23:17 -0700)]
Clear static buffer after use to avoid leaveing the negated copy of the last base table entry selected by the scalar since matching it against the 8 public entries recovers `|e[62]|`, the final radix-16 digit of the secret scalar.
Chris Duncan [Sat, 19 Sep 2026 06:09:24 +0000 (23:09 -0700)]
Stage constant instead of literal.
Chris Duncan [Sat, 19 Sep 2026 05:50:20 +0000 (22:50 -0700)]
Fix agent file.
Chris Duncan [Sat, 19 Sep 2026 05:49:00 +0000 (22:49 -0700)]
Reset buffers after [s]B.
Chris Duncan [Sat, 19 Sep 2026 05:47:46 +0000 (22:47 -0700)]
Add branded point zeroing.
Chris Duncan [Sat, 19 Sep 2026 05:45:15 +0000 (22:45 -0700)]
Fix staged verify byte comparison.
Chris Duncan [Fri, 18 Sep 2026 09:57:52 +0000 (02:57 -0700)]
Implement primordials to capture built-ins before they can be patched or overridden by subsequent malicious code.
Chris Duncan [Thu, 17 Sep 2026 06:57:41 +0000 (23:57 -0700)]
Remove convergence since it does not reduce by much and the .wat will differ from the .wasm if suboptimal.
Chris Duncan [Wed, 16 Sep 2026 07:18:27 +0000 (00:18 -0700)]
Fix test string modification.
Chris Duncan [Mon, 7 Sep 2026 07:24:41 +0000 (00:24 -0700)]
Add Bytes type alias for legibility.
Chris Duncan [Mon, 7 Sep 2026 06:27:27 +0000 (23:27 -0700)]
Merge branch 'next/batch-buffers'
Chris Duncan [Sun, 6 Sep 2026 09:33:02 +0000 (02:33 -0700)]
Fix README examples.
Chris Duncan [Sun, 6 Sep 2026 09:31:16 +0000 (02:31 -0700)]
Update README.
Chris Duncan [Sun, 6 Sep 2026 09:18:12 +0000 (02:18 -0700)]
Fix byte clearing after flipping verify bit meaning.
Chris Duncan [Sun, 6 Sep 2026 09:17:29 +0000 (02:17 -0700)]
Fix blake message byte counter in digest.
Chris Duncan [Sun, 6 Sep 2026 08:49:47 +0000 (01:49 -0700)]
Fix blake message byte counter carry.
Chris Duncan [Sun, 6 Sep 2026 08:25:50 +0000 (01:25 -0700)]
Fix output buffers in speed test page.
Chris Duncan [Sun, 6 Sep 2026 08:25:27 +0000 (01:25 -0700)]
Save markdownlint settings for changelog and readme content.
Chris Duncan [Sun, 6 Sep 2026 07:57:29 +0000 (00:57 -0700)]
Split up test vector sources and bundle them to resolve import issues.
Chris Duncan [Sun, 6 Sep 2026 07:31:48 +0000 (00:31 -0700)]
Require output buffer arg in order to receive output in bytes, else return string regardless of input type.
Chris Duncan [Sat, 5 Sep 2026 17:51:15 +0000 (10:51 -0700)]
Remove noop cast.
Chris Duncan [Sat, 5 Sep 2026 07:54:20 +0000 (00:54 -0700)]
Fix test vector fallback URL.
Chris Duncan [Sat, 5 Sep 2026 07:23:27 +0000 (00:23 -0700)]
Remove irrelevant build config parameter.
Chris Duncan [Sat, 5 Sep 2026 07:23:00 +0000 (00:23 -0700)]
Remove seed no longer needed by unit test.
Chris Duncan [Sat, 5 Sep 2026 03:36:36 +0000 (20:36 -0700)]
Fix positive test.
Chris Duncan [Fri, 4 Sep 2026 22:09:02 +0000 (15:09 -0700)]
Update agent file.
Chris Duncan [Fri, 4 Sep 2026 22:08:55 +0000 (15:08 -0700)]
Remove deprecated label drops.
Chris Duncan [Fri, 4 Sep 2026 21:35:46 +0000 (14:35 -0700)]
Use constant instead of hardcoded value.
Chris Duncan [Fri, 4 Sep 2026 21:35:08 +0000 (14:35 -0700)]
Add positive test for identity signature verification. Fix failed verify rejection output.
Chris Duncan [Fri, 4 Sep 2026 20:52:03 +0000 (13:52 -0700)]
Add canary for equalbytes. Add fabricated valid signature for identity public key.
Chris Duncan [Fri, 4 Sep 2026 20:21:44 +0000 (13:21 -0700)]
Move large test vector set to its own file to avoid crashing IDE. Add byte values for malleable signature vector.
Chris Duncan [Fri, 4 Sep 2026 19:37:20 +0000 (12:37 -0700)]
Extract identity public key for use in tests dedicated to its unique behavior.
Chris Duncan [Fri, 4 Sep 2026 19:05:59 +0000 (12:05 -0700)]
Import constant instead of hardcoding. Improve spread vector. Fix pairwise checks.
Chris Duncan [Fri, 4 Sep 2026 18:18:36 +0000 (11:18 -0700)]
Move constants out of main WASM file to eliminate possible import loops.
Chris Duncan [Fri, 4 Sep 2026 18:18:11 +0000 (11:18 -0700)]
Add comprehensive equalbytes unit tests to check byte pairs that would cancel each other out if the |= accumulator was accidentally replaced with a different, and wrong, operator.
Chris Duncan [Thu, 3 Sep 2026 05:44:01 +0000 (22:44 -0700)]
Fix unit test ranges.
Chris Duncan [Thu, 3 Sep 2026 05:17:45 +0000 (22:17 -0700)]
Expand unit tests for equalbytes.
Chris Duncan [Thu, 3 Sep 2026 05:13:31 +0000 (22:13 -0700)]
Rename verify algorithms.
Chris Duncan [Tue, 1 Sep 2026 06:11:12 +0000 (23:11 -0700)]
Migrate build tests to their own file.
Chris Duncan [Tue, 1 Sep 2026 06:02:16 +0000 (23:02 -0700)]
Import initial memory instead of exporting so that build tests can run and throw helpful messages instead of just crashing exported memory.
Chris Duncan [Tue, 1 Sep 2026 05:53:28 +0000 (22:53 -0700)]
Fix terminology.
Chris Duncan [Sun, 30 Aug 2026 02:02:30 +0000 (19:02 -0700)]
Retract unsupported verify_blocks correctness claim in agent file.
Chris Duncan [Sat, 29 Aug 2026 22:11:28 +0000 (15:11 -0700)]
Update agent file.
Chris Duncan [Sat, 29 Aug 2026 21:53:03 +0000 (14:53 -0700)]
Fix error string type.
Chris Duncan [Sat, 29 Aug 2026 21:43:54 +0000 (14:43 -0700)]
Encode errors for passing among WASM functions and out to host.
Chris Duncan [Sat, 29 Aug 2026 21:30:36 +0000 (14:30 -0700)]
Avoid logging long message string vectors too.
Chris Duncan [Sat, 29 Aug 2026 21:28:07 +0000 (14:28 -0700)]
Avoid logging entire long message when testing.
Chris Duncan [Sat, 29 Aug 2026 21:24:56 +0000 (14:24 -0700)]
Return exit code from crypto_sign to allow buffer cleanup.
Chris Duncan [Sat, 29 Aug 2026 09:17:20 +0000 (02:17 -0700)]
Move mutex lock out of try block so it does not clear buffers from underneath the currently executing function.
Chris Duncan [Sat, 29 Aug 2026 08:53:51 +0000 (01:53 -0700)]
Throw if memory grows instead of just rewrapping it.
Chris Duncan [Sat, 29 Aug 2026 08:46:09 +0000 (01:46 -0700)]
Implement mutex pattern to prevent async wrappers or similar from breaking shared buffer layout.
Chris Duncan [Sat, 29 Aug 2026 07:29:04 +0000 (00:29 -0700)]
Update doc comment.
Chris Duncan [Sat, 29 Aug 2026 07:25:22 +0000 (00:25 -0700)]
Pass ge object instead of pointer for A.
Chris Duncan [Sat, 29 Aug 2026 07:04:43 +0000 (00:04 -0700)]
Fill verify buffer to fail closed at instantiation.
Chris Duncan [Sat, 29 Aug 2026 06:47:19 +0000 (23:47 -0700)]
Fix documentation of constants.