Package tlslite :: Module tlsconnection :: Class KeyExchange
[hide private]
[frames] | no frames]

Class KeyExchange

source code


Common API for calculating Premaster secret

NOT stable, will get moved from this file

Instance Methods [hide private]
 
__init__(self, cipherSuite, clientHello, serverHello, privateKey)
Initializes the KeyExchange.
source code
 
makeServerKeyExchange()
Returns a ServerKeyExchange object for the server's initial leg in the handshake.
source code
 
processClientKeyExchange(clientKeyExchange)
Processes the client's ClientKeyExchange message and returns the premaster secret.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cipherSuite, clientHello, serverHello, privateKey)
(Constructor)

source code 

Initializes the KeyExchange. privateKey is the signing private key.

Overrides: object.__init__

makeServerKeyExchange()

source code 

Returns a ServerKeyExchange object for the server's initial leg in the handshake. If the key exchange method does not send ServerKeyExchange (e.g. RSA), it returns None.

processClientKeyExchange(clientKeyExchange)

source code 

Processes the client's ClientKeyExchange message and returns the premaster secret. Raises TLSLocalAlert on error.