Skip to content

Commit f287cd7

Browse files
aduh95targos
authored andcommitted
crypto: remove unused kHashTypes internal
PR-URL: #54627 Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 99566ae commit f287cd7

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/internal/crypto/util.js

-10
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,6 @@ const kNamedCurveAliases = {
171171

172172
const kAesKeyLengths = [128, 192, 256];
173173

174-
// These are the only hash algorithms we currently support via
175-
// the Web Crypto API.
176-
const kHashTypes = [
177-
'SHA-1',
178-
'SHA-256',
179-
'SHA-384',
180-
'SHA-512',
181-
];
182-
183174
const kSupportedAlgorithms = {
184175
'digest': {
185176
'SHA-1': null,
@@ -624,7 +615,6 @@ module.exports = {
624615
setEngine,
625616
toBuf,
626617

627-
kHashTypes,
628618
kNamedCurveAliases,
629619
kAesKeyLengths,
630620
normalizeAlgorithm,

0 commit comments

Comments
 (0)