]> git.codecow.com Git - nano25519.git/commitdiff
Adjust doc comment for accuracy.
authorChris Duncan <chris@codecow.com>
Mon, 9 Nov 2026 08:12:33 +0000 (00:12 -0800)
committerChris Duncan <chris@codecow.com>
Mon, 9 Nov 2026 08:12:33 +0000 (00:12 -0800)
src/assembly/ed25519/ge/double_scalarmult.ts

index f3857d901b5b6a09d46fd9405747d614b5395dfa..a361f8f77e5fc350f7c2245bd13ff09e0fd18da0 100644 (file)
@@ -26,7 +26,7 @@ const t: p1p1 = new p1p1()
 const u: p3 = new p3()
 
 /**
- * `r = a[A] + b[B]`
+ * `r = enc(a[A] + b[B])`
  *
  * where `a = a[0]+256*a[1]+...+256^31 a[31]`
  *
@@ -37,6 +37,8 @@ const u: p3 = new p3()
  *
  * `B` is the Ed25519 base point `(x, 4/5)` with `x` positive.
  *
+ * `enc()` is the point-to-byte encoding algorithm
+ *
  * Variable-time; only used for signature verification.
  */
 export function ge_double_scalarmult_vartime_to_bytes (r: StaticArray<u8>, a: StaticArray<u8>, Ai: StaticArray<p_cached>, b: StaticArray<u8>): void {