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 578868d commit 0d040a3Copy full SHA for 0d040a3
lib/internal/crypto/util.js
@@ -510,10 +510,14 @@ function getUsagesUnion(usageSet, ...usages) {
510
511
function getBlockSize(name) {
512
switch (name) {
513
- case 'SHA-1': return 512;
514
- case 'SHA-256': return 512;
515
- case 'SHA-384': return 1024;
516
- case 'SHA-512': return 1024;
+ case 'SHA-1':
+ // Fall through
+ case 'SHA-256':
+ return 512;
517
+ case 'SHA-384':
518
519
+ case 'SHA-512':
520
+ return 1024;
521
}
522
523
0 commit comments