]> git.codecow.com Git - nano25519.git/commitdiff
Doc formatting.
authorChris Duncan <chris@zoso.dev>
Fri, 2 Oct 2026 10:48:08 +0000 (03:48 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 2 Oct 2026 10:48:08 +0000 (03:48 -0700)
src/assembly/ed25519/ge.ts

index 402213b3fc45458a5d1b5f778cf00c43bd31860e..6143eca2004329be441db09b41131b0165cbae56 100644 (file)
@@ -377,12 +377,15 @@ const ge_double_scalarmult_vartime_u: ge_p3 = new ge_p3()
 const ge_double_scalarmult_vartime_A2: ge_p3 = new ge_p3()
 const ge_double_scalarmult_vartime_fe_scratch: FieldElement = fe()
 /**
- * r = a * A + b * B
- * where a = a[0]+256*a[1]+...+256^31 a[31].
- * and b = b[0]+256*b[1]+...+256^31 b[31].
- * B is the Ed25519 base point (x,4/5) with x positive.
+ * `r = a[A] + b[B]`
  *
- * Only used for signatures verification.
+ * where `a = a[0]+256*a[1]+...+256^31 a[31]`
+ *
+ * and `b = b[0]+256*b[1]+...+256^31 b[31]`
+ *
+ * `B` is the Ed25519 base point `(x, 4/5)` with `x` positive.
+ *
+ * Variable-time; only used for signature verification.
  */
 export function ge_double_scalarmult_vartime_to_p3 (r: ge_p3, a: StaticArray<u8>, A: ge_p3, b: StaticArray<u8>): void {
        const Bi = base2