summaryrefslogtreecommitdiff
path: root/test/parallel/test-crypto-keygen.js
diff options
context:
space:
mode:
authorFilip Skokan <panva.ip@gmail.com>2019-03-19 12:09:01 +0100
committerTobias Nießen <tniessen@tnie.de>2019-03-25 01:40:54 +0100
commit85fda7e8481003ec0d6b5217c90440ad79dc2204 (patch)
treee604e67cc7ad619f2e6d3f92d996e26288daadc3 /test/parallel/test-crypto-keygen.js
parent4a07a62d04b219ca72271f7cda0880a2a4300d05 (diff)
downloadnode-new-85fda7e8481003ec0d6b5217c90440ad79dc2204.tar.gz
crypto: add support for x25119 and x448 KeyObjects
PR-URL: https://github.com/nodejs/node/pull/26774 Refs: https://github.com/nodejs/node/issues/26626 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-crypto-keygen.js')
-rw-r--r--test/parallel/test-crypto-keygen.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parallel/test-crypto-keygen.js b/test/parallel/test-crypto-keygen.js
index ae29c9af40..7a164dffe9 100644
--- a/test/parallel/test-crypto-keygen.js
+++ b/test/parallel/test-crypto-keygen.js
@@ -425,7 +425,8 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
type: TypeError,
code: 'ERR_INVALID_ARG_VALUE',
message: "The argument 'type' must be one of " +
- "'rsa', 'dsa', 'ec', 'ed25519', 'ed448'. Received 'rsa2'"
+ "'rsa', 'dsa', 'ec', 'ed25519', 'ed448'," +
+ " 'x25519', 'x448'. Received 'rsa2'"
});
}
@@ -786,7 +787,7 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
// Test EdDSA key generation.
{
if (!/^1\.1\.0/.test(process.versions.openssl)) {
- ['ed25519', 'ed448'].forEach((keyType) => {
+ ['ed25519', 'ed448', 'x25519', 'x448'].forEach((keyType) => {
generateKeyPair(keyType, common.mustCall((err, publicKey, privateKey) => {
assert.ifError(err);