Crypt-MatrixSSL
view release on metacpan or search on metacpan
matrixssl-1-8-6-open/src/matrixSsl.c view on Meta::CPAN
Snapshot is called by the receiver of the finished message to produce
a hash of the preceeding handshake messages for comparison to incoming
message.
*/
int32 sslSnapshotHSHash(ssl_t *ssl, unsigned char *out, int32 senderFlag)
{
sslMd5Context_t md5;
sslSha1Context_t sha1;
/*
Use a backup of the message hash-to-date because we don't want
to destroy the state of the handshaking until truly complete
*/
md5 = ssl->sec.msgHashMd5;
sha1 = ssl->sec.msgHashSha1;
return sslGenerateFinishedHash(&md5, &sha1, ssl->sec.masterSecret,
out, senderFlag);
}
/******************************************************************************/
( run in 1.155 second using v1.01-cache-2.11-cpan-49f99fa48dc )