tlslite.handshakehashes module
Handling cryptographic hashes for handshake protocol
- class tlslite.handshakehashes.HandshakeHashes[source]
Bases:
object
Store and calculate necessary hashes for handshake protocol
Calculates message digests of messages exchanged in handshake protocol of SSLv3 and TLS.
- copy()[source]
Copy object
Return a copy of the object with all the hashes in the same state as the source object.
- Return type:
- digest(digest=None)[source]
Calculate and return digest for the already consumed data.
Used for Finished and CertificateVerify messages.
- Parameters:
digest (str) – name of digest to return