From c0d3fdaf630219d21d04ba0b9bf2c6e223ee93e4 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Tue, 31 Jan 2023 15:30:14 +0100 Subject: [PATCH] test,crypto: add CFRG curve vectors to wrap/unwrap tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/46406 Reviewed-By: Tobias Nießen Reviewed-By: James M Snell --- 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 1094845c73e143..8d107a99bdd8c5 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',