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

Class DHE_RSAKeyExchange

source code


Handling of ephemeral Diffe-Hellman Key exchange

NOT stable API, do NOT use

Instance Methods [hide private]
 
__init__(self, cipherSuite, clientHello, serverHello, privateKey)
Initializes the KeyExchange.
source code
 
makeServerKeyExchange(self)
Returns a ServerKeyExchange object for the server's initial leg in the handshake.
source code
 
processClientKeyExchange(self, 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__

Class Variables [hide private]
  dh_g = 2
  dh_p = 2176617445861743577319100889180275378190766837425553851...
  strength = 160
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__
(inherited documentation)

makeServerKeyExchange(self)

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.

Overrides: KeyExchange.makeServerKeyExchange
(inherited documentation)

processClientKeyExchange(self, clientKeyExchange)

source code 

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

Overrides: KeyExchange.processClientKeyExchange
(inherited documentation)

Class Variable Details [hide private]

dh_p

Value:
2176617445861743577319100889180275378190766837425553851114464322468988\
6235383840957210909013086056401571399717235807266581649606472148410291\
4133641521973644771808873956554837381150726774022351017625219015698207\
4029314952962041933326626207347105454836873603951970248622650624886106\
0256971802984953561121442680157668000761429988222457090413873973970171\
9270939921147517651680636147611196154762334220964427831179712363716473\
3387141433589577347466730896705080700550932042479967841703686792831676\
1272274230314067548291133582479583061439577559347101961771406173684378\
...