crypto: remove unused kHashTypes internal

PR-URL: https://github.com/nodejs/node/pull/54627
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Antoine du Hamel
2024-08-31 08:34:53 +02:00
committed by GitHub
parent d6f523480b
commit 4c844a2f30

View File

@@ -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,