| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 327a2b7 commit e285a7a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -243,7 +243,7 @@ async function testWrap(wrappingKey, unwrappingKey, key, wrap, format) { | |||
| 243 | 243 | assert.deepStrictEqual(exported, exportedAgain); | |
| 244 | 244 | } | |
| 245 | 245 | ||
| 246 | - async function testWrapping(name, keys, ecdhPeerKey) { | ||
| 246 | + async function testWrapping(name, keys) { | ||
| 247 | 247 | const variations = []; | |
| 248 | 248 | ||
| 249 | 249 | const { | |
@@ -264,13 +264,9 @@ async function testWrapping(name, keys, ecdhPeerKey) { | |||
| 264 | 264 | (async function() { | |
| 265 | 265 | await generateWrappingKeys(); | |
| 266 | 266 | const keys = await generateKeysToWrap(); | |
| 267 | - const ecdhPeerKey = await subtle.generateKey({ | ||
| 268 | - name: 'ECDH', | ||
| 269 | - namedCurve: 'P-384' | ||
| 270 | - }, true, ['deriveBits']); | ||
| 271 | 267 | const variations = []; | |
| 272 | 268 | Object.keys(kWrappingData).forEach((name) => { | |
| 273 | - return testWrapping(name, keys, ecdhPeerKey); | ||
| 269 | + return testWrapping(name, keys); | ||
| 274 | 270 | }); | |
| 275 | 271 | await Promise.all(variations); | |
| 276 | 272 | })().then(common.mustCall()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments