class ClientSSHTransportDHGroupExchangeBaseCase(ClientSSHTransportBaseCase): (source)
Known subclasses: twisted.conch.test.test_transport.ClientSSHTransportDHGroupExchangeSHA1Tests
, twisted.conch.test.test_transport.ClientSSHTransportDHGroupExchangeSHA256Tests
Diffie-Hellman group exchange tests for SSHClientTransport.
Method | begin_ |
Utility for test_KEX_DH_GEX_REPLY and test_disconnectGEX_REPLYBadSignature. |
Method | test_disconnect |
Test that KEX_DH_GEX_REPLY disconnects if the signature is bad. |
Method | test_disconnect |
Test that KEX_ECDH_REPLY disconnects if the signature is bad. |
Method | test_ |
Test that the KEX_DH_GEX_GROUP message results in a KEX_DH_GEX_INIT message with the client's Diffie-Hellman public key. |
Method | test_ |
Test that the KEX_DH_GEX_REPLY message results in a verified server. |
Method | test_ |
KEXINIT packet with a group-exchange key exchange results in a KEX_DH_GEX_REQUEST message. |
Constant | P1536 |
Undocumented |
Inherited from ClientSSHTransportBaseCase
:
Method | set |
Undocumented |
Method | verify |
Mock version of SSHClientTransport.verifyHostKey. |
Instance Variable | blob |
Undocumented |
Instance Variable | called |
Undocumented |
Instance Variable | priv |
Undocumented |
Inherited from ServerAndClientSSHTransportBaseCase
(via ClientSSHTransportBaseCase
):
Method | check |
Helper function to check if the transport disconnected. |
Method | connect |
Helper function to connect a modified protocol to the test protocol and test for disconnection. |
Method | test_disconnect |
Like test_disconnectIfCantMatchKex, but for the encryption. |
Method | test_disconnect |
Like test_disconnectIfCantMatchKex, but for the compression. |
Method | test_disconnect |
Test that the transport disconnects if it can't match the key exchange |
Method | test_disconnect |
Like test_disconnectIfCantMatchKex, but for the key algorithm. |
Method | test_disconnect |
Like test_disconnectIfCantMatchKex, but for the MAC. |
Method | test_get |
Test that the transport's getHost method returns an SSHTransportAddress with the IAddress of the host. |
Method | test_get |
Test that the transport's getPeer method returns an SSHTransportAddress with the IAddress of the peer. |
Utility for test_KEX_DH_GEX_REPLY and test_disconnectGEX_REPLYBadSignature.
Begins a Diffie-Hellman key exchange in an unnamed (server-specified) group and computes information needed to return either a correct or incorrect signature.
Test that the KEX_DH_GEX_GROUP message results in a KEX_DH_GEX_INIT message with the client's Diffie-Hellman public key.
Undocumented
Value |
|