twisted.conch.test.test_transport.ServerSSHTransportDHGroupExchangeBaseCase(ServerSSHTransportBaseCase) class documentationtwisted.conch.test.test_transport
(View In Hierarchy)
Known subclasses: twisted.conch.test.test_transport.ServerSSHTransportDHGroupExchangeSHA1Tests, twisted.conch.test.test_transport.ServerSSHTransportDHGroupExchangeSHA256Tests
Diffie-Hellman group exchange tests for SSHServerTransport.
| Method | test_KEX_DH_GEX_REQUEST_OLD | Test that the KEX_DH_GEX_REQUEST_OLD message causes the server to reply with a KEX_DH_GEX_GROUP message with the correct Diffie-Hellman group. | 
| Method | test_KEX_DH_GEX_REQUEST_OLD_badKexAlg | Test that if the server receives a KEX_DH_GEX_REQUEST_OLD message and the key exchange algorithm is not set, we raise a ConchError. | 
| Method | test_KEX_DH_GEX_REQUEST | Test that the KEX_DH_GEX_REQUEST message causes the server to reply with a KEX_DH_GEX_GROUP message with the correct Diffie-Hellman group. | 
| Method | test_KEX_DH_GEX_INIT_after_REQUEST_OLD | Test that the KEX_DH_GEX_INIT message after the client sends KEX_DH_GEX_REQUEST_OLD causes the server to send a KEX_DH_GEX_INIT message with a public key and signature. | 
| Method | test_KEX_DH_GEX_INIT_after_REQUEST | Test that the KEX_DH_GEX_INIT message after the client sends KEX_DH_GEX_REQUEST causes the server to send a KEX_DH_GEX_INIT message with a public key and signature. | 
Inherited from ServerSSHTransportBaseCase:
| Method | setUp | Undocumented | 
| Method | tearDown | Undocumented | 
Inherited from ServerAndClientSSHTransportBaseCase (via ServerSSHTransportBaseCase):
| Method | checkDisconnected | Helper function to check if the transport disconnected. | 
| Method | connectModifiedProtocol | Helper function to connect a modified protocol to the test protocol and test for disconnection. | 
| Method | test_disconnectIfCantMatchKex | Test that the transport disconnects if it can't match the key exchange | 
| Method | test_disconnectIfCantMatchKeyAlg | Like test_disconnectIfCantMatchKex, but for the key algorithm. | 
| Method | test_disconnectIfCantMatchCompression | Like test_disconnectIfCantMatchKex, but for the compression. | 
| Method | test_disconnectIfCantMatchCipher | Like test_disconnectIfCantMatchKex, but for the encryption. | 
| Method | test_disconnectIfCantMatchMAC | Like test_disconnectIfCantMatchKex, but for the MAC. | 
| Method | test_getPeer | Test that the transport's getPeermethod returns anSSHTransportAddresswith theIAddressof the peer. | 
| Method | test_getHost | Test that the transport's getHostmethod returns anSSHTransportAddresswith theIAddressof the host. | 
Test that the KEX_DH_GEX_REQUEST_OLD message causes the server to reply with a KEX_DH_GEX_GROUP message with the correct Diffie-Hellman group.
Test that if the server receives a KEX_DH_GEX_REQUEST_OLD message and the key exchange algorithm is not set, we raise a ConchError.
Test that the KEX_DH_GEX_REQUEST message causes the server to reply with a KEX_DH_GEX_GROUP message with the correct Diffie-Hellman group.