]> git.codecow.com Git - nano25519.git/log
nano25519.git
4 weeks agoExtract A multiplication table to decoding step before bulk verification.
Chris Duncan [Wed, 28 Oct 2026 21:22:17 +0000 (14:22 -0700)]
Extract A multiplication table to decoding step before bulk verification.

4 weeks agoExtract A multiple caching to top-level verify functions.
Chris Duncan [Wed, 28 Oct 2026 21:01:48 +0000 (14:01 -0700)]
Extract A multiple caching to top-level verify functions.

4 weeks agoAdd final helper to reduce A multiple caching to simple loop.
Chris Duncan [Wed, 28 Oct 2026 20:58:48 +0000 (13:58 -0700)]
Add final helper to reduce A multiple caching to simple loop.

4 weeks agoRename point arithmetic functions for clarity.
Chris Duncan [Wed, 28 Oct 2026 20:50:48 +0000 (13:50 -0700)]
Rename point arithmetic functions for clarity.

4 weeks agoAdd some helpers to start eliminating temp variables.
Chris Duncan [Wed, 28 Oct 2026 20:43:04 +0000 (13:43 -0700)]
Add some helpers to start eliminating temp variables.

4 weeks agoFix test case.
Chris Duncan [Wed, 28 Oct 2026 20:36:31 +0000 (13:36 -0700)]
Fix test case.

4 weeks agoSimplify legibility with multiplication instead of add-shift.
Chris Duncan [Wed, 28 Oct 2026 20:28:07 +0000 (13:28 -0700)]
Simplify legibility with multiplication instead of add-shift.

4 weeks agoSet pointers where they are reused to guarantee to the compiler that they won't change.
Chris Duncan [Wed, 28 Oct 2026 19:53:23 +0000 (12:53 -0700)]
Set pointers where they are reused to guarantee to the compiler that they won't change.

4 weeks agoRefactor blake to zero with WASM instructions instead of fill or copy which must...
Chris Duncan [Wed, 28 Oct 2026 19:28:19 +0000 (12:28 -0700)]
Refactor blake to zero with WASM instructions instead of fill or copy which must call out to C helpers.

4 weeks agoDisable binaryen optimization because it's actually hurting performance.
Chris Duncan [Wed, 28 Oct 2026 16:01:10 +0000 (09:01 -0700)]
Disable binaryen optimization because it's actually hurting performance.

4 weeks agoDeprecate unnecessary parameter block to remove expensive loads, stores, and fills.
Chris Duncan [Wed, 28 Oct 2026 15:58:24 +0000 (08:58 -0700)]
Deprecate unnecessary parameter block to remove expensive loads, stores, and fills.

4 weeks agoMerge branch 'next/fix-sq' test/fp-12-limb
Chris Duncan [Wed, 28 Oct 2026 14:53:30 +0000 (07:53 -0700)]
Merge branch 'next/fix-sq'

4 weeks agoAdjust vector loads and shuffles for field element multiplication and squaring for...
Chris Duncan [Wed, 28 Oct 2026 14:47:10 +0000 (07:47 -0700)]
Adjust vector loads and shuffles for field element multiplication and squaring for both consistency and performance.

4 weeks agoApplying squaring fix to doubling version since it also eliminates 5 variables.
Chris Duncan [Wed, 28 Oct 2026 01:25:16 +0000 (18:25 -0700)]
Applying squaring fix to doubling version since it also eliminates 5 variables.

4 weeks agoFix scaling in square accumulators that was not an active bug but could become an...
Chris Duncan [Wed, 28 Oct 2026 01:22:36 +0000 (18:22 -0700)]
Fix scaling in square accumulators that was not an active bug but could become an issue later.

4 weeks agoSimplify field element negation.
Chris Duncan [Tue, 27 Oct 2026 23:58:31 +0000 (16:58 -0700)]
Simplify field element negation.

4 weeks agoFix doc comment.
Chris Duncan [Tue, 27 Oct 2026 23:57:04 +0000 (16:57 -0700)]
Fix doc comment.

4 weeks agoDocument p3 caching equation.
Chris Duncan [Tue, 27 Oct 2026 23:40:04 +0000 (16:40 -0700)]
Document p3 caching equation.

4 weeks agoEliminate some temporary variables. Create parallel addition-subtraction of field...
Chris Duncan [Tue, 27 Oct 2026 13:19:04 +0000 (06:19 -0700)]
Eliminate some temporary variables. Create parallel addition-subtraction of field elements. Add dual multiplication with second-lane doubling for cached point arithmetic. Fix mutants test.

5 weeks agoMerge branch 'test/fe_mul_vec'
Chris Duncan [Thu, 22 Oct 2026 05:21:20 +0000 (22:21 -0700)]
Merge branch 'test/fe_mul_vec'

5 weeks agoReorganize declarations.
Chris Duncan [Thu, 22 Oct 2026 05:20:14 +0000 (22:20 -0700)]
Reorganize declarations.

5 weeks agoUse shifted constants for legibility.
Chris Duncan [Thu, 22 Oct 2026 05:16:50 +0000 (22:16 -0700)]
Use shifted constants for legibility.

5 weeks agoEnforce zeroing extra lanes when loading field element static arrays.
Chris Duncan [Thu, 22 Oct 2026 04:57:42 +0000 (21:57 -0700)]
Enforce zeroing extra lanes when loading field element static arrays.

5 weeks agoEliminate some redundant computations.
Chris Duncan [Thu, 22 Oct 2026 04:50:34 +0000 (21:50 -0700)]
Eliminate some redundant computations.

5 weeks agoRevert scalar multiplication for fewer instructions.
Chris Duncan [Thu, 22 Oct 2026 04:40:07 +0000 (21:40 -0700)]
Revert scalar multiplication for fewer instructions.

5 weeks agoReplace multiplication with addition.
Chris Duncan [Wed, 21 Oct 2026 18:54:54 +0000 (11:54 -0700)]
Replace multiplication with addition.

5 weeks agoApply masking carry to decompression.
Chris Duncan [Wed, 21 Oct 2026 18:45:33 +0000 (11:45 -0700)]
Apply masking carry to decompression.

5 weeks agoCarry scalars in mul and sq with mask instead of shift.
Chris Duncan [Wed, 21 Oct 2026 18:35:09 +0000 (11:35 -0700)]
Carry scalars in mul and sq with mask instead of shift.

5 weeks agoRemove deprecated function.
Chris Duncan [Wed, 21 Oct 2026 16:01:33 +0000 (09:01 -0700)]
Remove deprecated function.

5 weeks agoReplace shift doublings with addition doublings.
Chris Duncan [Wed, 21 Oct 2026 15:55:55 +0000 (08:55 -0700)]
Replace shift doublings with addition doublings.

5 weeks agoEliminate a few extra ops.
Chris Duncan [Wed, 21 Oct 2026 14:07:59 +0000 (07:07 -0700)]
Eliminate a few extra ops.

5 weeks agoRearrange dual square loading.
Chris Duncan [Wed, 21 Oct 2026 14:01:52 +0000 (07:01 -0700)]
Rearrange dual square loading.

5 weeks agoAdders are more available than shifters.
Chris Duncan [Wed, 21 Oct 2026 13:46:19 +0000 (06:46 -0700)]
Adders are more available than shifters.

5 weeks agoReduce multiplicand loading and use shuffles to select lanes so that doubling can...
Chris Duncan [Wed, 21 Oct 2026 13:42:53 +0000 (06:42 -0700)]
Reduce multiplicand loading and use shuffles to select lanes so that doubling can take place up front.

5 weeks agoSimplify dual mult init.
Chris Duncan [Wed, 21 Oct 2026 08:39:36 +0000 (01:39 -0700)]
Simplify dual mult init.

5 weeks agoFix doc comments.
Chris Duncan [Wed, 21 Oct 2026 07:44:28 +0000 (00:44 -0700)]
Fix doc comments.

5 weeks agoEliminate extra accumulators in single multiplication.
Chris Duncan [Wed, 21 Oct 2026 06:24:06 +0000 (23:24 -0700)]
Eliminate extra accumulators in single multiplication.

5 weeks agoinitial move of fe_mul
Chris Duncan [Wed, 21 Oct 2026 04:29:44 +0000 (21:29 -0700)]
initial move of fe_mul

5 weeks agoShift and add instead of multiply.
Chris Duncan [Wed, 21 Oct 2026 04:13:44 +0000 (21:13 -0700)]
Shift and add instead of multiply.

5 weeks agoEnforce prevention of loading garbage data into unused lanes.
Chris Duncan [Wed, 21 Oct 2026 04:10:20 +0000 (21:10 -0700)]
Enforce prevention of loading garbage data into unused lanes.

5 weeks agoApply unsigned biasing to dual multiplication.
Chris Duncan [Tue, 20 Oct 2026 19:58:16 +0000 (12:58 -0700)]
Apply unsigned biasing to dual multiplication.

5 weeks agoSwitch parallel squaring to use low lanes only for legibility and clarity.
Chris Duncan [Tue, 20 Oct 2026 15:34:04 +0000 (08:34 -0700)]
Switch parallel squaring to use low lanes only for legibility and clarity.

5 weeks agoPair up doubled squarings.
Chris Duncan [Tue, 20 Oct 2026 15:11:02 +0000 (08:11 -0700)]
Pair up doubled squarings.

5 weeks agoFix bias right shift type.
Chris Duncan [Tue, 20 Oct 2026 15:05:02 +0000 (08:05 -0700)]
Fix bias right shift type.

5 weeks agoApply unsigned bias in carry for better instructions.
Chris Duncan [Tue, 20 Oct 2026 14:03:42 +0000 (07:03 -0700)]
Apply unsigned bias in carry for better instructions.

5 weeks agoAdjust dual squaring packing and unpacking.
Chris Duncan [Tue, 20 Oct 2026 06:45:02 +0000 (23:45 -0700)]
Adjust dual squaring packing and unpacking.

5 weeks agonot done
Chris Duncan [Mon, 19 Oct 2026 21:37:15 +0000 (14:37 -0700)]
not done

5 weeks agoUse shifts and adds instead of potentially slower multiplication by constant.
Chris Duncan [Mon, 19 Oct 2026 21:10:16 +0000 (14:10 -0700)]
Use shifts and adds instead of potentially slower multiplication by constant.

5 weeks agoAvoid risk of loading beyond 10-limb limit.
Chris Duncan [Mon, 19 Oct 2026 20:44:24 +0000 (13:44 -0700)]
Avoid risk of loading beyond 10-limb limit.

5 weeks agoImprove parallel multiplication store to memory.
Chris Duncan [Mon, 19 Oct 2026 20:27:53 +0000 (13:27 -0700)]
Improve parallel multiplication store to memory.

5 weeks agoAdd parallel multiplication function. Performance is even at this point with main.
Chris Duncan [Mon, 19 Oct 2026 20:06:47 +0000 (13:06 -0700)]
Add parallel multiplication function. Performance is even at this point with main.

6 weeks agov2.0.0 v2.0.0
Chris Duncan [Sun, 18 Oct 2026 10:43:53 +0000 (03:43 -0700)]
v2.0.0

6 weeks agoMerge branch 'next/check'
Chris Duncan [Sun, 18 Oct 2026 07:52:02 +0000 (00:52 -0700)]
Merge branch 'next/check'

6 weeks agoUpdate documentation and agent file.
Chris Duncan [Sat, 17 Oct 2026 23:57:38 +0000 (16:57 -0700)]
Update documentation and agent file.

6 weeks agoAdd and update tests.
Chris Duncan [Sat, 17 Oct 2026 23:56:24 +0000 (16:56 -0700)]
Add and update tests.

6 weeks agoProcess private key bytes individually and pass as 16-bit words instead of 32-bit...
Chris Duncan [Sat, 17 Oct 2026 09:11:00 +0000 (02:11 -0700)]
Process private key bytes individually and pass as 16-bit words instead of 32-bit words in order to work around JS engine heap policies.

6 weeks agoSet private key bytes into WASM input buffer via byte-level copying only.
Chris Duncan [Sat, 17 Oct 2026 08:00:10 +0000 (01:00 -0700)]
Set private key bytes into WASM input buffer via byte-level copying only.

6 weeks agoForce V8 copy of small buffer from the heap at instantiation while buffer is zero...
Chris Duncan [Sat, 17 Oct 2026 07:19:01 +0000 (00:19 -0700)]
Force V8 copy of small buffer from the heap at instantiation while buffer is zero-initialized.

6 weeks agoUpdate tests and agent file.
Chris Duncan [Sat, 17 Oct 2026 06:12:23 +0000 (23:12 -0700)]
Update tests and agent file.

6 weeks agoInvert check results.
Chris Duncan [Sat, 17 Oct 2026 05:52:58 +0000 (22:52 -0700)]
Invert check results.

6 weeks agoFix small order checks.
Chris Duncan [Sat, 17 Oct 2026 05:15:49 +0000 (22:15 -0700)]
Fix small order checks.

6 weeks agoImprove small-order check semantics.
Chris Duncan [Fri, 16 Oct 2026 21:00:29 +0000 (14:00 -0700)]
Improve small-order check semantics.

6 weeks agoUpdate tests, agent file, and README.
Chris Duncan [Fri, 16 Oct 2026 18:52:24 +0000 (11:52 -0700)]
Update tests, agent file, and README.

6 weeks agoAllow zero at first so proper error message is returned.
Chris Duncan [Fri, 16 Oct 2026 18:45:13 +0000 (11:45 -0700)]
Allow zero at first so proper error message is returned.

6 weeks agoAdd more type checking on batch block length. Capture String static method.
Chris Duncan [Fri, 16 Oct 2026 16:23:06 +0000 (09:23 -0700)]
Add more type checking on batch block length. Capture String static method.

6 weeks agoRestore captured byte allocation and object & array accessors. Validate length of...
Chris Duncan [Fri, 16 Oct 2026 14:42:04 +0000 (07:42 -0700)]
Restore captured byte allocation and object & array accessors. Validate length of batch block input.

6 weeks agoRestore typed array captures.
Chris Duncan [Thu, 15 Oct 2026 22:22:01 +0000 (15:22 -0700)]
Restore typed array captures.

6 weeks agoAdd noble curves comparison to test page.
Chris Duncan [Thu, 15 Oct 2026 21:52:50 +0000 (14:52 -0700)]
Add noble curves comparison to test page.

6 weeks agoUpdate tests, agent file, and README.
Chris Duncan [Thu, 15 Oct 2026 21:31:39 +0000 (14:31 -0700)]
Update tests, agent file, and README.

6 weeks agoFix verify_blocks output and truncate byte accessors description header.
Chris Duncan [Thu, 15 Oct 2026 21:08:45 +0000 (14:08 -0700)]
Fix verify_blocks output and truncate byte accessors description header.

6 weeks agoRemove unused export, remove static method capture, and fix doc comments.
Chris Duncan [Thu, 15 Oct 2026 20:29:02 +0000 (13:29 -0700)]
Remove unused export, remove static method capture, and fix doc comments.

6 weeks agoFix block verification output.
Chris Duncan [Thu, 15 Oct 2026 20:26:41 +0000 (13:26 -0700)]
Fix block verification output.

6 weeks agoRename primordials file.
Chris Duncan [Thu, 15 Oct 2026 20:12:35 +0000 (13:12 -0700)]
Rename primordials file.

6 weeks agoDeprecate excessive primordials and simplify others.
Chris Duncan [Thu, 15 Oct 2026 20:10:45 +0000 (13:10 -0700)]
Deprecate excessive primordials and simplify others.

6 weeks agoCreate WASM module directly from imported bytes. Fix error imports.
Chris Duncan [Thu, 15 Oct 2026 17:38:54 +0000 (10:38 -0700)]
Create WASM module directly from imported bytes. Fix error imports.

6 weeks agoImprove doc comment.
Chris Duncan [Thu, 15 Oct 2026 17:31:45 +0000 (10:31 -0700)]
Improve doc comment.

6 weeks agoErrors module has no imports, so revert custom error location for better expectations.
Chris Duncan [Thu, 15 Oct 2026 17:24:27 +0000 (10:24 -0700)]
Errors module has no imports, so revert custom error location for better expectations.

6 weeks agoImprove byte accessor bindings.
Chris Duncan [Thu, 15 Oct 2026 17:15:26 +0000 (10:15 -0700)]
Improve byte accessor bindings.

6 weeks agoScrap ineffective custom error prototype freeze.
Chris Duncan [Thu, 15 Oct 2026 16:21:28 +0000 (09:21 -0700)]
Scrap ineffective custom error prototype freeze.

7 weeks agoThrow custom errors only and move their definitions so they don't need to be imported...
Chris Duncan [Sun, 11 Oct 2026 14:28:06 +0000 (07:28 -0700)]
Throw custom errors only and move their definitions so they don't need to be imported to primordials module. Freeze constants when exported.

7 weeks agoTypecheck byte length input on constructor.
Chris Duncan [Sun, 11 Oct 2026 13:59:48 +0000 (06:59 -0700)]
Typecheck byte length input on constructor.

7 weeks agoFix SPDX headers.
Chris Duncan [Sun, 11 Oct 2026 06:44:52 +0000 (23:44 -0700)]
Fix SPDX headers.

7 weeks agoFix JSdoc..
Chris Duncan [Sun, 11 Oct 2026 06:34:25 +0000 (23:34 -0700)]
Fix JSdoc..

7 weeks agoRefactor entry point buffer design to allow constants for byte arrays under module...
Chris Duncan [Sat, 10 Oct 2026 20:17:50 +0000 (13:17 -0700)]
Refactor entry point buffer design to allow constants for byte arrays under module control while allowing variable size messages.

7 weeks agoDeclare keys and signatures outside of try block so they can be properly cleared...
Chris Duncan [Sat, 10 Oct 2026 18:46:26 +0000 (11:46 -0700)]
Declare keys and signatures outside of try block so they can be properly cleared in finally block if they error out.

7 weeks agoSimplify doc comment.
Chris Duncan [Sat, 10 Oct 2026 09:39:42 +0000 (02:39 -0700)]
Simplify doc comment.

7 weeks agoUpdate agent file and tests.
Chris Duncan [Sat, 10 Oct 2026 09:37:13 +0000 (02:37 -0700)]
Update agent file and tests.

7 weeks agoFix description of current verify until strictness can be implemented with test vectors.
Chris Duncan [Sat, 10 Oct 2026 09:06:23 +0000 (02:06 -0700)]
Fix description of current verify until strictness can be implemented with test vectors.

7 weeks agoRemove unused p3 computation from strict verification.
Chris Duncan [Sat, 10 Oct 2026 09:01:02 +0000 (02:01 -0700)]
Remove unused p3 computation from strict verification.

7 weeks agoFix doc comments.
Chris Duncan [Sat, 10 Oct 2026 08:55:36 +0000 (01:55 -0700)]
Fix doc comments.

7 weeks agoUpdate tests.
Chris Duncan [Sat, 10 Oct 2026 08:33:29 +0000 (01:33 -0700)]
Update tests.

7 weeks agoRefactor array capture to set elements directly.
Chris Duncan [Sat, 10 Oct 2026 08:14:33 +0000 (01:14 -0700)]
Refactor array capture to set elements directly.

7 weeks agoCapture array constructor to control index access on block verification results.
Chris Duncan [Sat, 10 Oct 2026 07:41:53 +0000 (00:41 -0700)]
Capture array constructor to control index access on block verification results.

7 weeks agoFix doc comment.
Chris Duncan [Sat, 10 Oct 2026 06:24:53 +0000 (23:24 -0700)]
Fix doc comment.

7 weeks agoScrub output buffer for verify scalarmult. Incorporate A and B scalar checks into...
Chris Duncan [Sat, 10 Oct 2026 06:23:22 +0000 (23:23 -0700)]
Scrub output buffer for verify scalarmult. Incorporate A and B scalar checks into index setting.

7 weeks agoFix error comparison test.
Chris Duncan [Sat, 10 Oct 2026 05:58:29 +0000 (22:58 -0700)]
Fix error comparison test.

7 weeks agoFix copyright header.
Chris Duncan [Sat, 10 Oct 2026 05:50:16 +0000 (22:50 -0700)]
Fix copyright header.

7 weeks agoValidate byte length prior to copying the entire view.
Chris Duncan [Sat, 10 Oct 2026 05:44:24 +0000 (22:44 -0700)]
Validate byte length prior to copying the entire view.

7 weeks agoFix documentation.
Chris Duncan [Sat, 10 Oct 2026 05:43:58 +0000 (22:43 -0700)]
Fix documentation.

7 weeks agoFix static string method and remove unused constants.
Chris Duncan [Sat, 10 Oct 2026 05:22:16 +0000 (22:22 -0700)]
Fix static string method and remove unused constants.