Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: remove unused ecdhPeerKey
This commit removed ecdhPeerKey from test-webcrypto-wrap-unwrap.js which
seems to be unsued.
  • Loading branch information
danbev committed Jan 15, 2021
commit a333edec0e676e36d36b2b59b7744f52872c214d
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());