From 92e2b088550080199c1f2f80eb6f0035416a62d3 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 31 Aug 2024 08:34:53 +0200 Subject: [PATCH] crypto: remove unused `kHashTypes` internal PR-URL: /~https://github.com/nodejs/node/pull/54627 Reviewed-By: Filip Skokan Reviewed-By: Benjamin Gruenbaum Reviewed-By: Yagiz Nizipli Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- lib/internal/crypto/util.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/internal/crypto/util.js b/lib/internal/crypto/util.js index 6bf3f0624dffe5..a1d7e84dae36bc 100644 --- a/lib/internal/crypto/util.js +++ b/lib/internal/crypto/util.js @@ -171,15 +171,6 @@ const kNamedCurveAliases = { const kAesKeyLengths = [128, 192, 256]; -// These are the only hash algorithms we currently support via -// the Web Crypto API. -const kHashTypes = [ - 'SHA-1', - 'SHA-256', - 'SHA-384', - 'SHA-512', -]; - const kSupportedAlgorithms = { 'digest': { 'SHA-1': null, @@ -624,7 +615,6 @@ module.exports = { setEngine, toBuf, - kHashTypes, kNamedCurveAliases, kAesKeyLengths, normalizeAlgorithm,