]>
git.codecow.com Git - nano25519.git/log
Chris Duncan [Sun, 4 Oct 2026 06:40:07 +0000 (23:40 -0700)]
Revert to scalar carry for multiplication.
Chris Duncan [Sun, 4 Oct 2026 03:49:46 +0000 (20:49 -0700)]
Fix doc comment.
Chris Duncan [Sun, 4 Oct 2026 01:13:27 +0000 (18:13 -0700)]
Fix canonical check.
Chris Duncan [Sat, 3 Oct 2026 07:16:49 +0000 (00:16 -0700)]
Check signature R canonicity in strict verification.
Chris Duncan [Fri, 2 Oct 2026 10:48:08 +0000 (03:48 -0700)]
Doc formatting.
Chris Duncan [Fri, 2 Oct 2026 10:28:20 +0000 (03:28 -0700)]
Reorganize coordinates to bytes as the only p function with scratch buffers.
Chris Duncan [Fri, 2 Oct 2026 10:04:10 +0000 (03:04 -0700)]
Enforce function-specific names for module-scoped variable.
Chris Duncan [Fri, 2 Oct 2026 09:57:51 +0000 (02:57 -0700)]
Move remaining p scratch buffers except for tobytes.
Chris Duncan [Fri, 2 Oct 2026 09:53:24 +0000 (02:53 -0700)]
Move pointer math scratch buffers.
Chris Duncan [Fri, 2 Oct 2026 09:43:29 +0000 (02:43 -0700)]
Move final field element scratch buffer.
Chris Duncan [Fri, 2 Oct 2026 09:40:18 +0000 (02:40 -0700)]
More scratch buffers.
Chris Duncan [Fri, 2 Oct 2026 09:27:59 +0000 (02:27 -0700)]
Adjust how scratch args are sorted.
Chris Duncan [Fri, 2 Oct 2026 08:47:34 +0000 (01:47 -0700)]
Move buffers and adjust naming convention.
Chris Duncan [Fri, 2 Oct 2026 08:36:13 +0000 (01:36 -0700)]
Move scratch buffer from fe_isnegative.
Chris Duncan [Fri, 2 Oct 2026 08:32:06 +0000 (01:32 -0700)]
Start combining scratch buffers to migrate them to highest level possible and reduce instances.
Chris Duncan [Fri, 2 Oct 2026 08:16:07 +0000 (01:16 -0700)]
Cut module size by 10% by letting compiler decide which hot paths to inline.
Chris Duncan [Fri, 2 Oct 2026 06:51:16 +0000 (23:51 -0700)]
Merge single-use function into caller.
Chris Duncan [Fri, 2 Oct 2026 06:37:39 +0000 (23:37 -0700)]
Rename variables.
Chris Duncan [Fri, 2 Oct 2026 05:33:50 +0000 (22:33 -0700)]
Eliminate another scratch buffer.
Chris Duncan [Fri, 2 Oct 2026 05:28:45 +0000 (22:28 -0700)]
Reorganize exports, no functional change.
Chris Duncan [Fri, 2 Oct 2026 05:20:38 +0000 (22:20 -0700)]
Eliminate another scratch buffer.
Chris Duncan [Fri, 2 Oct 2026 05:16:26 +0000 (22:16 -0700)]
Eliminate a scratch buffer by reusing parameter.
Chris Duncan [Thu, 1 Oct 2026 21:40:00 +0000 (14:40 -0700)]
Straighten out cneg.
Chris Duncan [Thu, 1 Oct 2026 21:37:31 +0000 (14:37 -0700)]
Extract signature check for multiple verification call sites.
Chris Duncan [Thu, 1 Oct 2026 21:24:04 +0000 (14:24 -0700)]
Simplify some arithmetic. Fix documentation.
Chris Duncan [Thu, 1 Oct 2026 21:02:09 +0000 (14:02 -0700)]
Revert function name for accuracy.
Chris Duncan [Thu, 1 Oct 2026 20:59:54 +0000 (13:59 -0700)]
Ensure extra newlines are stripped from generated code.
Chris Duncan [Thu, 1 Oct 2026 20:57:51 +0000 (13:57 -0700)]
Reduce load calls and eliminate loop in blake gen. Formatting.
Chris Duncan [Thu, 1 Oct 2026 20:51:02 +0000 (13:51 -0700)]
Interleave carry assignments to improve cpu scheduling.
Chris Duncan [Thu, 1 Oct 2026 20:30:59 +0000 (13:30 -0700)]
Bias carry shifts to reduce instruction count and improve performance.
Chris Duncan [Thu, 1 Oct 2026 19:53:43 +0000 (12:53 -0700)]
Migrate multiply carry chain from scalar extraction and carry to direct vector manipulation and storage.
Chris Duncan [Thu, 1 Oct 2026 14:48:52 +0000 (07:48 -0700)]
Parallel vector squaring did not perform any better than sequential scalar squaring, so deprecate it to simplify and reduce module size.
Chris Duncan [Thu, 1 Oct 2026 02:11:05 +0000 (19:11 -0700)]
Merge single-use vartime verify function into caller. Swap vector squaring parameter order. Copy point doubling algorithm instead of calling to define a fe instead of a p2. Fix identity functions based on new branded point types.
Chris Duncan [Thu, 1 Oct 2026 01:15:38 +0000 (18:15 -0700)]
Narrow point types.
Chris Duncan [Thu, 1 Oct 2026 01:09:27 +0000 (18:09 -0700)]
Rename variable.
Chris Duncan [Thu, 1 Oct 2026 00:23:48 +0000 (17:23 -0700)]
Combine load and splat.
Chris Duncan [Thu, 1 Oct 2026 00:23:36 +0000 (17:23 -0700)]
Add asc compilation scripts and profiling script.
Chris Duncan [Thu, 1 Oct 2026 00:23:01 +0000 (17:23 -0700)]
Move mutex release into Mutex object for clarity of intent.
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.