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 <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>
  • Loading branch information
aduh95 committed Sep 12, 2024
1 parent 6a32645 commit 02ac537
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 02ac537

Please sign in to comment.