]>
git.codecow.com Git - nano25519.git/log
Chris Duncan [Sat, 31 Oct 2026 22:25:31 +0000 (15:25 -0700)]
Formatting.
Chris Duncan [Sat, 31 Oct 2026 20:17:20 +0000 (13:17 -0700)]
Implement squaring loop logic.
Chris Duncan [Sat, 31 Oct 2026 17:32:05 +0000 (10:32 -0700)]
Draft looping square helper.
Chris Duncan [Fri, 30 Oct 2026 21:51:59 +0000 (14:51 -0700)]
Merge branch 'next/optimize-blake2b'
Chris Duncan [Fri, 30 Oct 2026 21:51:07 +0000 (14:51 -0700)]
Fix doc comment.
Chris Duncan [Fri, 30 Oct 2026 21:47:33 +0000 (14:47 -0700)]
Clear A if public key fails verification.
Chris Duncan [Fri, 30 Oct 2026 21:45:13 +0000 (14:45 -0700)]
Fix name and make parameters consistent.
Chris Duncan [Fri, 30 Oct 2026 21:43:33 +0000 (14:43 -0700)]
Call byte decoding instead of implementing twice.
Chris Duncan [Fri, 30 Oct 2026 21:40:31 +0000 (14:40 -0700)]
Rearrange functions.
Chris Duncan [Fri, 30 Oct 2026 21:40:07 +0000 (14:40 -0700)]
Use short form for vartime negated byte decoding to save mul and sq calls while getting the same result.
Chris Duncan [Fri, 30 Oct 2026 21:38:53 +0000 (14:38 -0700)]
Add doc comments.
Chris Duncan [Fri, 30 Oct 2026 20:45:16 +0000 (13:45 -0700)]
Fix doc comments.
Chris Duncan [Fri, 30 Oct 2026 19:56:16 +0000 (12:56 -0700)]
Update variable name.
Chris Duncan [Fri, 30 Oct 2026 19:54:45 +0000 (12:54 -0700)]
Save a multiplication by storing intermediate uv3 instead of just v3.
Chris Duncan [Fri, 30 Oct 2026 19:47:30 +0000 (12:47 -0700)]
Use consistent variable names.
Chris Duncan [Fri, 30 Oct 2026 19:38:24 +0000 (12:38 -0700)]
Share check buffer since they aren't needed in parallel when variable time.
Chris Duncan [Fri, 30 Oct 2026 17:57:07 +0000 (10:57 -0700)]
Extract pairwise multiplication into inlined helper function.
Chris Duncan [Fri, 30 Oct 2026 03:32:12 +0000 (20:32 -0700)]
Preload square root -1 and multiply (not real pair yet, needs work.)
Chris Duncan [Fri, 30 Oct 2026 03:08:45 +0000 (20:08 -0700)]
Apply same preloaded vectors of
Ed25519 constant d to fe_mul like 2d.
Chris Duncan [Fri, 30 Oct 2026 02:30:03 +0000 (19:30 -0700)]
Shorten names of point ops and retain ge_ prefix for larger operations.
Chris Duncan [Fri, 30 Oct 2026 02:20:55 +0000 (19:20 -0700)]
Implement pairwise ops in frombytes.
Chris Duncan [Fri, 30 Oct 2026 02:14:38 +0000 (19:14 -0700)]
Add paired multiplication against constant 2d.
Chris Duncan [Fri, 30 Oct 2026 01:47:06 +0000 (18:47 -0700)]
Remove unused import.
Chris Duncan [Fri, 30 Oct 2026 01:42:25 +0000 (18:42 -0700)]
Clean up fe_mul functions.
Chris Duncan [Fri, 30 Oct 2026 01:37:16 +0000 (18:37 -0700)]
Remove unused 2d multiply and rename remaining one.
Chris Duncan [Fri, 30 Oct 2026 01:36:19 +0000 (18:36 -0700)]
Remove a negation by flipping addsub targets.
Chris Duncan [Fri, 30 Oct 2026 01:31:06 +0000 (18:31 -0700)]
Deprecate triple operand multiplication since it's not really saving any tempvars.
Chris Duncan [Fri, 30 Oct 2026 01:25:30 +0000 (18:25 -0700)]
Fix some tests.
Chris Duncan [Thu, 29 Oct 2026 21:56:06 +0000 (14:56 -0700)]
Update variable names and apply 3-operand multiplication.
Chris Duncan [Thu, 29 Oct 2026 21:25:32 +0000 (14:25 -0700)]
Build multiplication wrappers to enable simpler call sites for more than 2 operands and for the 2d constant operand.
Chris Duncan [Thu, 29 Oct 2026 21:03:06 +0000 (14:03 -0700)]
Small grammatical correction.
Chris Duncan [Thu, 29 Oct 2026 19:41:38 +0000 (12:41 -0700)]
Create wrappers for fe_mul to enable clean multiplication of more than two operands.
Chris Duncan [Thu, 29 Oct 2026 19:33:06 +0000 (12:33 -0700)]
Update fe_mul function names for clarity on internals.
Chris Duncan [Thu, 29 Oct 2026 19:13:15 +0000 (12:13 -0700)]
Rename again.
Chris Duncan [Thu, 29 Oct 2026 19:09:21 +0000 (12:09 -0700)]
Extract field product carrying to inlined helper functions.
Chris Duncan [Thu, 29 Oct 2026 17:27:22 +0000 (10:27 -0700)]
Update function names for a little more clarity. This deviates a bit from original naming conventions in that 2 signified doubling, but other functions use the dbl suffix, so this module will use that instead.
Chris Duncan [Thu, 29 Oct 2026 17:19:23 +0000 (10:19 -0700)]
Adjust parameter name.
Chris Duncan [Thu, 29 Oct 2026 16:14:02 +0000 (09:14 -0700)]
Implement p3 subtraction directly to eliminate another tempvar.
Chris Duncan [Thu, 29 Oct 2026 15:57:10 +0000 (08:57 -0700)]
Remove unused temp.
Chris Duncan [Thu, 29 Oct 2026 14:46:10 +0000 (07:46 -0700)]
Extract extended projective point addition to free up some temporary buffers.
Chris Duncan [Thu, 29 Oct 2026 13:57:55 +0000 (06:57 -0700)]
Rearrange multiplication to reduce similar dependencies.
Chris Duncan [Thu, 29 Oct 2026 07:38:20 +0000 (00:38 -0700)]
Rearrange to reduce function parameter from full coordinates to field element.
Chris Duncan [Wed, 28 Oct 2026 21:45:57 +0000 (14:45 -0700)]
Apply intermediate step to at least reduce full point storage to a single fe.
Chris Duncan [Wed, 28 Oct 2026 21:42:05 +0000 (14:42 -0700)]
Combine addition and subtraction steps.
Chris Duncan [Wed, 28 Oct 2026 21:40:21 +0000 (14:40 -0700)]
Fix mistakenly deleted line.
Chris Duncan [Wed, 28 Oct 2026 21:34:59 +0000 (14:34 -0700)]
Document p3 cached addition steps a little clearer.
Chris Duncan [Wed, 28 Oct 2026 21:28:42 +0000 (14:28 -0700)]
Consolidate some temp var usage and fix doc comments.
Chris Duncan [Wed, 28 Oct 2026 21:22:17 +0000 (14:22 -0700)]
Extract A multiplication table to decoding step before bulk verification.
Chris Duncan [Wed, 28 Oct 2026 21:01:48 +0000 (14:01 -0700)]
Extract A multiple caching to top-level verify functions.
Chris Duncan [Wed, 28 Oct 2026 20:58:48 +0000 (13:58 -0700)]
Add final helper to reduce A multiple caching to simple loop.
Chris Duncan [Wed, 28 Oct 2026 20:50:48 +0000 (13:50 -0700)]
Rename point arithmetic functions for clarity.
Chris Duncan [Wed, 28 Oct 2026 20:43:04 +0000 (13:43 -0700)]
Add some helpers to start eliminating temp variables.
Chris Duncan [Wed, 28 Oct 2026 20:36:31 +0000 (13:36 -0700)]
Fix test case.
Chris Duncan [Wed, 28 Oct 2026 20:28:07 +0000 (13:28 -0700)]
Simplify legibility with multiplication instead of add-shift.
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.
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.
Chris Duncan [Wed, 28 Oct 2026 16:01:10 +0000 (09:01 -0700)]
Disable binaryen optimization because it's actually hurting performance.
Chris Duncan [Wed, 28 Oct 2026 15:58:24 +0000 (08:58 -0700)]
Deprecate unnecessary parameter block to remove expensive loads, stores, and fills.
Chris Duncan [Wed, 28 Oct 2026 14:53:30 +0000 (07:53 -0700)]
Merge branch 'next/fix-sq'
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.
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.
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.
Chris Duncan [Tue, 27 Oct 2026 23:58:31 +0000 (16:58 -0700)]
Simplify field element negation.
Chris Duncan [Tue, 27 Oct 2026 23:57:04 +0000 (16:57 -0700)]
Fix doc comment.
Chris Duncan [Tue, 27 Oct 2026 23:40:04 +0000 (16:40 -0700)]
Document p3 caching equation.
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.
Chris Duncan [Thu, 22 Oct 2026 05:21:20 +0000 (22:21 -0700)]
Merge branch 'test/fe_mul_vec'
Chris Duncan [Thu, 22 Oct 2026 05:20:14 +0000 (22:20 -0700)]
Reorganize declarations.
Chris Duncan [Thu, 22 Oct 2026 05:16:50 +0000 (22:16 -0700)]
Use shifted constants for legibility.
Chris Duncan [Thu, 22 Oct 2026 04:57:42 +0000 (21:57 -0700)]
Enforce zeroing extra lanes when loading field element static arrays.
Chris Duncan [Thu, 22 Oct 2026 04:50:34 +0000 (21:50 -0700)]
Eliminate some redundant computations.
Chris Duncan [Thu, 22 Oct 2026 04:40:07 +0000 (21:40 -0700)]
Revert scalar multiplication for fewer instructions.
Chris Duncan [Wed, 21 Oct 2026 18:54:54 +0000 (11:54 -0700)]
Replace multiplication with addition.
Chris Duncan [Wed, 21 Oct 2026 18:45:33 +0000 (11:45 -0700)]
Apply masking carry to decompression.
Chris Duncan [Wed, 21 Oct 2026 18:35:09 +0000 (11:35 -0700)]
Carry scalars in mul and sq with mask instead of shift.
Chris Duncan [Wed, 21 Oct 2026 16:01:33 +0000 (09:01 -0700)]
Remove deprecated function.
Chris Duncan [Wed, 21 Oct 2026 15:55:55 +0000 (08:55 -0700)]
Replace shift doublings with addition doublings.
Chris Duncan [Wed, 21 Oct 2026 14:07:59 +0000 (07:07 -0700)]
Eliminate a few extra ops.
Chris Duncan [Wed, 21 Oct 2026 14:01:52 +0000 (07:01 -0700)]
Rearrange dual square loading.
Chris Duncan [Wed, 21 Oct 2026 13:46:19 +0000 (06:46 -0700)]
Adders are more available than shifters.
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.
Chris Duncan [Wed, 21 Oct 2026 08:39:36 +0000 (01:39 -0700)]
Simplify dual mult init.
Chris Duncan [Wed, 21 Oct 2026 07:44:28 +0000 (00:44 -0700)]
Fix doc comments.
Chris Duncan [Wed, 21 Oct 2026 06:24:06 +0000 (23:24 -0700)]
Eliminate extra accumulators in single multiplication.
Chris Duncan [Wed, 21 Oct 2026 04:29:44 +0000 (21:29 -0700)]
initial move of fe_mul
Chris Duncan [Wed, 21 Oct 2026 04:13:44 +0000 (21:13 -0700)]
Shift and add instead of multiply.
Chris Duncan [Wed, 21 Oct 2026 04:10:20 +0000 (21:10 -0700)]
Enforce prevention of loading garbage data into unused lanes.
Chris Duncan [Tue, 20 Oct 2026 19:58:16 +0000 (12:58 -0700)]
Apply unsigned biasing to dual multiplication.
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.
Chris Duncan [Tue, 20 Oct 2026 15:11:02 +0000 (08:11 -0700)]
Pair up doubled squarings.
Chris Duncan [Tue, 20 Oct 2026 15:05:02 +0000 (08:05 -0700)]
Fix bias right shift type.
Chris Duncan [Tue, 20 Oct 2026 14:03:42 +0000 (07:03 -0700)]
Apply unsigned bias in carry for better instructions.
Chris Duncan [Tue, 20 Oct 2026 06:45:02 +0000 (23:45 -0700)]
Adjust dual squaring packing and unpacking.
Chris Duncan [Mon, 19 Oct 2026 21:37:15 +0000 (14:37 -0700)]
not done
Chris Duncan [Mon, 19 Oct 2026 21:10:16 +0000 (14:10 -0700)]
Use shifts and adds instead of potentially slower multiplication by constant.
Chris Duncan [Mon, 19 Oct 2026 20:44:24 +0000 (13:44 -0700)]
Avoid risk of loading beyond 10-limb limit.
Chris Duncan [Mon, 19 Oct 2026 20:27:53 +0000 (13:27 -0700)]
Improve parallel multiplication store to memory.
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.
Chris Duncan [Sun, 18 Oct 2026 10:43:53 +0000 (03:43 -0700)]
v2.0.0
Chris Duncan [Sun, 18 Oct 2026 07:52:02 +0000 (00:52 -0700)]
Merge branch 'next/check'