Skip to content

Commit

Permalink
test: remove unused ecdhPeerKey
Browse files Browse the repository at this point in the history
This commit removed ecdhPeerKey from test-webcrypto-wrap-unwrap.js which
seems to be unsued.

PR-URL: #36942
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
danbev authored and ruyadorno committed Jan 25, 2021
1 parent 3f75a60 commit 98369aa
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/parallel/test-webcrypto-wrap-unwrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ async function testWrap(wrappingKey, unwrappingKey, key, wrap, format) {
assert.deepStrictEqual(exported, exportedAgain);
}

async function testWrapping(name, keys, ecdhPeerKey) {
async function testWrapping(name, keys) {
const variations = [];

const {
Expand All @@ -264,13 +264,9 @@ async function testWrapping(name, keys, ecdhPeerKey) {
(async function() {
await generateWrappingKeys();
const keys = await generateKeysToWrap();
const ecdhPeerKey = await subtle.generateKey({
name: 'ECDH',
namedCurve: 'P-384'
}, true, ['deriveBits']);
const variations = [];
Object.keys(kWrappingData).forEach((name) => {
return testWrapping(name, keys, ecdhPeerKey);
return testWrapping(name, keys);
});
await Promise.all(variations);
})().then(common.mustCall());

0 comments on commit 98369aa

Please sign in to comment.