Skip to content

Commit

Permalink
crypto: remove unused kHashTypes internal
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
aduh95 authored and targos committed Oct 2, 2024
1 parent 99566ae commit f287cd7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/internal/crypto/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -624,7 +615,6 @@ module.exports = {
setEngine,
toBuf,

kHashTypes,
kNamedCurveAliases,
kAesKeyLengths,
normalizeAlgorithm,
Expand Down

0 comments on commit f287cd7

Please sign in to comment.