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

Function calculateVerifyData

modules/crypt/ssl/ssl_handshake.js:937–941  ·  view source on GitHub ↗
(session, flag)

Source from the content-addressed store, hash-verified

935 msgType: finished,
936
937 calculateVerifyData(session, flag) {
938 let finishLabel = (session.connectionEnd ^ flag) ? client_finished_label : server_finished_label;
939 let digest = handshakeDigestResult(session, session.protocolVersion <= 0x302 ? MD5 | SHA1 : SHA256);
940 return PRF(session, session.masterSecret, finishLabel, digest, 12);
941 },
942 unpacketize(session, s) {
943 session.traceProtocol(this);
944 delete session.peerCert;

Callers

nothing calls this directly

Calls 2

handshakeDigestResultFunction · 0.85
PRFFunction · 0.85

Tested by

no test coverage detected