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

Function handshakeDigestUpdate

modules/crypt/ssl/ssl_handshake.js:102–113  ·  view source on GitHub ↗
(session, data)

Source from the content-addressed store, hash-verified

100}, true);
101
102function handshakeDigestUpdate(session, data)
103{
104 if (session.handshakeDigests) {
105 for (let digest in session.handshakeDigests)
106 session.handshakeDigests[digest].write(data);
107 return;
108 }
109
110 if (!session.handshakeMessages)
111 session.handshakeMessages = new SSLStream();
112 return session.handshakeMessages.writeChunk(data);
113}
114
115function handshakeDigestResult(session, which)
116{

Callers 2

unpacketizeFunction · 0.85
packetizeFunction · 0.85

Calls 2

writeMethod · 0.65
writeChunkMethod · 0.45

Tested by

no test coverage detected