diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-03-13 17:44:51 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 12:14:51 +0530 |
commit | 6e6c316c9d3950cd23cb28af41b0525695438c3c (patch) | |
tree | b2543a6084b67a14dff8d746be5c51ad97f69263 /tests | |
parent | f50678b4f3ace22cbc770cbda183e9cb374bbabb (diff) |
feat(ext/node): add more named curves in `crypto.generateKeyPair[Sync]()` (#22882)
Towards fixing #21761
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_node/crypto/crypto_key_test.ts | 11 |
1 files changed, 10 insertions, 1 deletions
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() { |