Package tlslite :: Module keyexchange :: Class DHE_RSAKeyExchange
[hide private]
[frames] | no frames]

type DHE_RSAKeyExchange

source code


Handling of authenticated ephemeral Diffe-Hellman Key exchange.

Instance Methods [hide private]
 
__init__(self, cipherSuite, clientHello, serverHello, privateKey, dhParams=None, dhGroups=None)
Create helper object for Diffie-Hellamn key exchange.
source code

Inherited from AuthenticatedKeyExchange: makeServerKeyExchange

Inherited from ADHKeyExchange: makeClientKeyExchange, processClientKeyExchange, processServerKeyExchange

Inherited from KeyExchange: signServerKeyExchange

Inherited from KeyExchange (private): _tls12_signSKE

Static Methods [hide private]

Inherited from KeyExchange: calcVerifyBytes, makeCertificateVerify, verifyServerKeyExchange

Inherited from KeyExchange (private): _tls12_verify_SKE

Method Details [hide private]

__init__(self, cipherSuite, clientHello, serverHello, privateKey, dhParams=None, dhGroups=None)
(Constructor)

source code 

Create helper object for Diffie-Hellamn key exchange.

Parameters:
  • dhParams (2-element tuple of int) - Diffie-Hellman parameters that will be used by server. First element of the tuple is the generator, the second is the prime. If not specified it will use a secure set (currently a 2048-bit safe prime).
Overrides: KeyExchange.__init__