]> git.codecow.com Git - nano25519.git/commitdiff
Rename clearing function.
authorChris Duncan <chris@codecow.com>
Tue, 3 Nov 2026 21:34:55 +0000 (13:34 -0800)
committerChris Duncan <chris@codecow.com>
Tue, 3 Nov 2026 21:34:55 +0000 (13:34 -0800)
src/assembly/ed25519/z.ts

index 082432a33edea484693230a21df38ab15a51f87b..5452c06527a242e7ef8b72d8640e12b1a6a4d229 100644 (file)
@@ -8,7 +8,7 @@ const b = fe()
 const c = fe()
 const t = fe()
 
-function clear (): void {
+function z_0 (): void {
        fe_0(a)
        fe_0(b)
        fe_0(c)
@@ -58,7 +58,7 @@ export function fe_invert (out: FieldElement, z: FieldElement): void {
        fe_pow22501(out, z)
        fe_sq_n(out, out, 5)
        fe_mul(out, t, out)
-       clear()
+       z_0()
 }
 
 /**
@@ -76,5 +76,5 @@ export function fe_pow22523 (z: FieldElement): void {
        fe_pow22501(t, z)
        fe_sq_n(t, t, 2)
        fe_mul(z, t, z)
-       clear()
+       z_0()
 }