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>
pull/54673/head
Antoine du Hamel 2024-08-31 08:34:53 +02:00 committed by GitHub
parent d6f523480b
commit 4c844a2f30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 10 deletions

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,