From 9489e11f7d9d5e8325d77df3666ec7ebec310d4d Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Fri, 1 Apr 2022 11:50:06 +0200 Subject: [PATCH] move cfrg algorithms away from node-specific exts --- lib/internal/crypto/util.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/internal/crypto/util.js b/lib/internal/crypto/util.js index 1a4fb6bd72876a..57de61202d932e 100644 --- a/lib/internal/crypto/util.js +++ b/lib/internal/crypto/util.js @@ -166,15 +166,15 @@ const kAlgorithms = { 'sha-512': 'SHA-512', 'hkdf': 'HKDF', 'pbkdf2': 'PBKDF2', + 'ed25519': 'Ed25519', + 'ed448': 'Ed448', + 'x25519': 'X25519', + 'x448': 'X448', // Following here are Node.js specific extensions. All // should be prefixed with 'node-' 'node-dsa': 'NODE-DSA', 'node-dh': 'NODE-DH', 'node-scrypt': 'NODE-SCRYPT', - 'ed25519': 'Ed25519', - 'ed448': 'Ed448', - 'x25519': 'X25519', - 'x448': 'X448', }; const kAlgorithmsKeys = ObjectKeys(kAlgorithms);