| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6fcce90 commit 5598baf
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,25 +22,25 @@ for await (const mod of sources) { | |||
| 22 | 22 | } | |
| 23 | 23 | } | |
| 24 | 24 | ||
| 25 | - if (vectors.sign) vectors.verify = vectors.sign; | ||
| 26 | - if (vectors.encrypt) vectors.decrypt = vectors.encrypt; | ||
| 27 | - | ||
| 28 | - if (vectors.encrypt && vectors.exportKey) { | ||
| 29 | - for (const enc of vectors.encrypt) { | ||
| 30 | - for (const exp of vectors.exportKey) { | ||
| 31 | - vectors.wrapKey.push([enc[0] && exp[0], enc[1], exp[1]]); | ||
| 32 | - } | ||
| 25 | + vectors.verify = vectors.sign; | ||
| 26 | + vectors.decrypt = vectors.encrypt; | ||
| 27 | + | ||
| 28 | + for (const enc of vectors.encrypt) { | ||
| 29 | + for (const exp of vectors.exportKey) { | ||
| 30 | + vectors.wrapKey.push([enc[0] && exp[0], enc[1], exp[1]]); | ||
| 33 | 31 | } | |
| 34 | 32 | } | |
| 35 | 33 | ||
| 36 | - if (vectors.decrypt && vectors.importKey) { | ||
| 37 | - for (const dec of vectors.decrypt) { | ||
| 38 | - for (const imp of vectors.importKey) { | ||
| 39 | - vectors.unwrapKey.push([dec[0] && imp[0], dec[1], imp[1]]); | ||
| 40 | - } | ||
| 34 | + for (const dec of vectors.decrypt) { | ||
| 35 | + for (const imp of vectors.importKey) { | ||
| 36 | + vectors.unwrapKey.push([dec[0] && imp[0], dec[1], imp[1]]); | ||
| 41 | 37 | } | |
| 42 | 38 | } | |
| 43 | 39 | ||
| 40 | + for (const exportKey of vectors.exportKey) { | ||
| 41 | + if (!exportKey[0]) vectors.getPublicKey.push(exportKey); | ||
| 42 | + } | ||
| 43 | + | ||
| 44 | 44 | for (const operation of Object.keys(vectors)) { | |
| 45 | 45 | for (const [expectation, ...args] of vectors[operation]) { | |
| 46 | 46 | assert.strictEqual( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments