From 997cfa18ba21f79e53810dbc1b3d7ff56b8bb886 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Sun, 29 Jan 2023 15:18:31 +0100 Subject: [PATCH] test,crypto: add CFRG curve vectors to wrap/unwrap tests --- test/parallel/test-webcrypto-wrap-unwrap.js | 32 +++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/test/parallel/test-webcrypto-wrap-unwrap.js b/test/parallel/test-webcrypto-wrap-unwrap.js index aae1ac6c573b1f..06f748ed4c0639 100644 --- a/test/parallel/test-webcrypto-wrap-unwrap.js +++ b/test/parallel/test-webcrypto-wrap-unwrap.js @@ -113,6 +113,38 @@ async function generateKeysToWrap() { publicUsages: [], pair: true, }, + { + algorithm: { + name: 'Ed25519', + }, + privateUsages: ['sign'], + publicUsages: ['verify'], + pair: true, + }, + { + algorithm: { + name: 'Ed448', + }, + privateUsages: ['sign'], + publicUsages: ['verify'], + pair: true, + }, + { + algorithm: { + name: 'X25519', + }, + privateUsages: ['deriveBits'], + publicUsages: [], + pair: true, + }, + { + algorithm: { + name: 'X448', + }, + privateUsages: ['deriveBits'], + publicUsages: [], + pair: true, + }, { algorithm: { name: 'AES-CTR',