MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / calculateDigest

Function calculateDigest

modules/crypt/ssl/ssl_handshake.js:887–891  ·  view source on GitHub ↗
(session)

Source from the content-addressed store, hash-verified

885 name: "certificateVerify",
886 msgType: certificate_verify,
887 calculateDigest(session) {
888 return handshakeDigestResult(session,
889 session.protocolVersion >= 0x303 ? SHA256 :
890 (session.chosenCipher.keyExchangeAlgorithm == RSA ? MD5 | SHA1 : SHA1));
891 },
892 unpacketize(session, s) {
893 session.traceProtocol(this);
894 const sig = s.readChunk(s.readChars(2));

Callers

nothing calls this directly

Calls 1

handshakeDigestResultFunction · 0.85

Tested by

no test coverage detected