]> git.codecow.com Git - nano25519.git/commit
Pointers, vectors, and doubling.
authorChris Duncan <chris@zoso.dev>
Fri, 27 Feb 2026 08:03:35 +0000 (00:03 -0800)
committerChris Duncan <chris@zoso.dev>
Fri, 27 Feb 2026 08:03:35 +0000 (00:03 -0800)
commit0381b36ac7c4de0e286fb7d71c5ead81aee204a9
treee69e8746629f3a70ddb10ba8564bc06549a36c7b
parent4d4090d42654d0d5085cb2a7b842f09d88b35a3d
Pointers, vectors, and doubling.

Use pointers for field element constants and simplify scalarbase copy setup. Implement point doubling function. Vectorize selection logic and use built-in for swapping bits. Tweak error handling, maybe fix liftString at some point. Use immediate offsets instead of pointer arithmetic where possible. Pass pointers directly to scalarmult, add, and cswap.
assembly/nano-nacl.ts
index.ts