From 6e6c316c9d3950cd23cb28af41b0525695438c3c Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Wed, 13 Mar 2024 17:44:51 +1100 Subject: feat(ext/node): add more named curves in `crypto.generateKeyPair[Sync]()` (#22882) Towards fixing #21761 --- tests/unit_node/crypto/crypto_key_test.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/unit_node') diff --git a/tests/unit_node/crypto/crypto_key_test.ts b/tests/unit_node/crypto/crypto_key_test.ts index c8724d284..6dae79336 100644 --- a/tests/unit_node/crypto/crypto_key_test.ts +++ b/tests/unit_node/crypto/crypto_key_test.ts @@ -106,7 +106,16 @@ for (const type of ["rsa", "rsa-pss", "dsa"]) { } } -for (const namedCurve of ["P-384", "P-256"]) { +for ( + const namedCurve of [ + "P-384", + "prime384v1", + "secp384r1", + "P-256", + "prime256v1", + "secp256r1", + ] +) { Deno.test({ name: `generate ec key ${namedCurve}`, fn() { -- cgit v1.2.3