mirror of https://github.com/nodejs/node.git
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
parent
d6f523480b
commit
4c844a2f30
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue