We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9b1d6c commit 1350035Copy full SHA for 1350035
lib/internal/crypto/util.js
@@ -490,10 +490,14 @@ function getUsagesUnion(usageSet, ...usages) {
490
491
function getBlockSize(name) {
492
switch (name) {
493
- case 'SHA-1': return 512;
494
- case 'SHA-256': return 512;
495
- case 'SHA-384': return 1024;
496
- case 'SHA-512': return 1024;
+ case 'SHA-1':
+ // Fall through
+ case 'SHA-256':
+ return 512;
497
+ case 'SHA-384':
498
499
+ case 'SHA-512':
500
+ return 1024;
501
}
502
503
0 commit comments