MCPcopy Index your code
hub / github.com/nodejs/node / getDigestSizeInBytes

Function getDigestSizeInBytes

lib/internal/crypto/util.js:927–941  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

925}
926
927function getDigestSizeInBytes(name) {
928 switch (name) {
929 case 'SHA-1':
930 return 20;
931 case 'SHA-256': // Fall through
932 case 'SHA3-256':
933 return 32;
934 case 'SHA-384': // Fall through
935 case 'SHA3-384':
936 return 48;
937 case 'SHA-512': // Fall through
938 case 'SHA3-512':
939 return 64;
940 }
941}
942
943function validateKeyOps(keyOps, usagesSet) {
944 if (keyOps === undefined) return;

Callers 1

rsaSignVerifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…