]> git.codecow.com Git - nano25519.git/commitdiff
Fix doc comments.
authorChris Duncan <chris@codecow.com>
Sat, 7 Nov 2026 20:35:55 +0000 (12:35 -0800)
committerChris Duncan <chris@codecow.com>
Sat, 7 Nov 2026 20:35:55 +0000 (12:35 -0800)
src/assembly/ed25519/fe.ts

index b92ed40870299bfd701c7e20d87ff9d7f260b5c6..7147a50c4c949f346d51f373a6f10e06c7a95bad 100644 (file)
@@ -955,7 +955,7 @@ export function fe_mul (f: FieldElement, a: FieldElement, b: FieldElement): void
 }
 
 /**
- * `f₀ = a₀b₀√-1`
+ * `f = a√-1`
  *
  * Multiply a FieldElement with the Ed25519 constant `√-1` and store the product.
  *
@@ -967,23 +967,23 @@ export function fe_mul_sqrtm1 (f: FieldElement, a: FieldElement): void {
 }
 
 /**
- * `f₀ = a₀b₀; f₁ = a₁b₁√-1`
+ * `f₀ = a₀b₀; f₁ = a₁√-1`
  *
  * For two pairs of FieldElements, multiply pairwise in parallel, multiply the
  * second lane by the Ed25519 constant `√-1`, and store the product.
  *
- * @param f_0 A product destination
- * @param a_0 A multiplicand source
- * @param b_0 A multiplicand source
- * @param f_1 B product destination * √-1
- * @param a_1 B multiplicand source
+ * @param f_0 First product destination
+ * @param a_0 First multiplicand source
+ * @param b_0 First multiplicand source
+ * @param f_1 Second product destination * √-1
+ * @param a_1 Second multiplicand source
  */
 export function fe_mul_pair_sqrtm1 (f_0: FieldElement, a_0: FieldElement, b_0: FieldElement, f_1: FieldElement, a_1: FieldElement): void {
        fe_extmul_pair(f_0, a_0, b_0, f_1, a_1, sqrtm1_0123, sqrtm1_4567, sqrtm1_89xx)
 }
 
 /**
- * `f₀ = a₀b₀d`
+ * `f = ad`
  *
  * Multiply a FieldElement with the Ed25519 constant `d` and store the product.
  *
@@ -995,7 +995,7 @@ export function fe_mul_d (f: FieldElement, a: FieldElement): void {
 }
 
 /**
- * `f₀ = 2a₀b₀d`
+ * `f = 2ad`
  *
  * Multiply a FieldElement with the Ed25519 constant `2d` and store the product.
  *
@@ -1007,17 +1007,17 @@ export function fe_mul_2d (f: FieldElement, a: FieldElement): void {
 }
 
 /**
- * `f₀ = a₀b₀; f₁ = a₁b₁d`
+ * `f₀ = a₀b₀; f₁ = a₁b₁`
  *
  * For two pairs of FieldElements, multiply pairwise in parallel and store the
  * product.
  *
- * @param f_0 FieldElement A product destination
- * @param a_0 FieldElement A multiplicand source
- * @param b_0 FieldElement A multiplicand source
- * @param f_1 FieldElement B product destination
- * @param a_1 FieldElement B multiplicand source
- * @param b_1 FieldElement B multiplicand source
+ * @param f_0 FieldElement First product destination
+ * @param a_0 FieldElement First multiplicand source
+ * @param b_0 FieldElement First multiplicand source
+ * @param f_1 FieldElement Second product destination
+ * @param a_1 FieldElement Second multiplicand source
+ * @param b_1 FieldElement Second multiplicand source
  */
 export function fe_mul_pair (f_0: FieldElement, a_0: FieldElement, b_0: FieldElement, f_1: FieldElement, a_1: FieldElement, b_1: FieldElement): void {
        // Load all 10 limbs of second `b` to pass to helper function