]> git.codecow.com Git - nano25519.git/commitdiff
Deprecate unused functions.
authorChris Duncan <chris@codecow.com>
Mon, 26 Oct 2026 18:59:44 +0000 (11:59 -0700)
committerChris Duncan <chris@codecow.com>
Mon, 26 Oct 2026 18:59:44 +0000 (11:59 -0700)
src/assembly/ed25519/fep.ts

index 9e3c40ef11bf9fe7348124804452276fcee45631..1171fbca5149b8f29b58bb2c04fc3c91a91726a6 100644 (file)
@@ -54,35 +54,6 @@ export function fep_unpack (f_a: FieldElement, f_b: FieldElement, f: FieldElemen
        }
 }
 
-/**
- * Unpacks the first lane of a FieldElementPair into a single FieldElement.
- */
-export function fep_unpack_lane (f_a: FieldElement, f: FieldElementPair): void {
-       for (let i = 0, j = 0; i < 10; i++, j += 2) {
-               f_a[i] = f[j]
-       }
-}
-
-/**
- * Turns `[a0, b0, a1, b1, ...]` into `[a0, a1, ..., b0, b1, ...]`
- */
-export function fep_unweave (h: FieldElementPair, f: FieldElementPair): void {
-       for (let i = 0, j = 0; i < 10; i++, j += 2) {
-               h[i] = f[j]
-               h[i + 10] = f[j + 1]
-       }
-}
-
-/**
- * Turns `[a0, a1, ..., b0, b1, ...]` into `[a0, b0, a1, b1, ...]`
- */
-export function fep_weave (h: FieldElementPair, f: FieldElementPair): void {
-       for (let i = 0, j = 0; i < 10; i++, j += 2) {
-               h[j] = f[i]
-               h[j + 1] = f[i + 10]
-       }
-}
-
 /**
  * Add two FieldElement pairs and store the sum.
  *