]> git.codecow.com Git - nano25519.git/commitdiff
Update doc comment parameter types.
authorChris Duncan <chris@codecow.com>
Fri, 23 Oct 2026 18:37:27 +0000 (11:37 -0700)
committerChris Duncan <chris@codecow.com>
Fri, 23 Oct 2026 18:37:27 +0000 (11:37 -0700)
src/assembly/ed25519/fep.ts

index f0a5a419555e9ec337addcc11d25db282bb8a883..c559c9f55f8306a17f95020830f6d6d3e7824e96 100644 (file)
@@ -32,7 +32,7 @@ export function fep (): FieldElementPair {
 /**
  * Set all values of a FieldElementPair to zero.
  *
- * @param h FieldElementPair destination
+ * @param {FieldElementPair} h destination
  */
 export function fep_0 (h: FieldElementPair): void {
        memory.fill(changetype<usize>(h), 0, 80)
@@ -42,7 +42,7 @@ export function fep_0 (h: FieldElementPair): void {
  * Set the first limb of each FieldElement in the pair to 1 and all subsequent
  * limbs to zero.
  *
- * @param h FieldElementPair destination
+ * @param {FieldElementPair} h destination
  */
 export function fep_1 (h: FieldElementPair): void {
        fep_0(h)
@@ -130,8 +130,8 @@ export function fep_copy (h: FieldElementPair, f: FieldElementPair): void {
 /**
  * Add a FieldElementPair to itself and store the sum.
  *
- * @param h FieldElementPair sum destination
- * @param f FieldElementPair summand source
+ * @param {FieldElementPair} h sum destination
+ * @param {FieldElementPair} f summand source
  */
 export function fep_dbl (h: FieldElementPair, f: FieldElementPair): void {
        const f0 = v128.load(changetype<usize>(f), 0 << 4)
@@ -763,10 +763,10 @@ export function fep_neg (h: FieldElementPair, f: FieldElementPair): void {
  * Postconditions:
  * |h| bounded by 1.01*2²⁵,1.01*2²⁴,1.01*2²⁵,1.01*2²⁴,etc.
  *
- * @param h_a FieldElementPair A product destination
- * @param f_a FieldElementPair A multiplicand source
- * @param h_b FieldElementPair B product destination
- * @param f_b FieldElementPair B multiplicand source
+ * @param {FieldElementPair} h_a A product destination
+ * @param {FieldElementPair} f_a A multiplicand source
+ * @param {FieldElementPair} h_b B product destination
+ * @param {FieldElementPair} f_b B multiplicand source
  */
 export function fep_sq (h: FieldElementPair, f: FieldElementPair): void {
        const f01: v128 = v128.load(changetype<usize>(f), 0 << 4)
@@ -966,10 +966,10 @@ export function fep_sq (h: FieldElementPair, f: FieldElementPair): void {
  * Postconditions:
  * |h| bounded by 1.01*2²⁵,1.01*2²⁴,1.01*2²⁵,1.01*2²⁴,etc.
  *
- * @param h_a FieldElementPair A power destination
- * @param f_a FieldElementPair A base source
- * @param h_b FieldElementPair B power destination, doubled
- * @param f_b FieldElementPair B base source
+ * @param {FieldElementPair} h_a A power destination
+ * @param {FieldElementPair} f_a A base source
+ * @param {FieldElementPair} h_b B power destination, doubled
+ * @param {FieldElementPair} f_b B base source
  */
 export function fep_sq2 (h_a: FieldElementPair, f_a: FieldElementPair, h_b: FieldElementPair, f_b: FieldElementPair): void {
        // pack each f index in low lanes, high lanes are ignored