mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user