class ServerSSHTransportDHGroupExchangeBaseCase(ServerSSHTransportBaseCase): (source)
Known subclasses: twisted.conch.test.test_transport.ServerSSHTransportDHGroupExchangeSHA1Tests
, twisted.conch.test.test_transport.ServerSSHTransportDHGroupExchangeSHA256Tests
Diffie-Hellman group exchange tests for SSHServerTransport.
Method | test_ |
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. |
Method | test_ |
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_ |
Test that the KEX_DH_GEX_INIT message after the client sends KEX_DH_GEX_REQUEST using a public key signature algorithm other than the default for the public key format causes the server to send a KEX_DH_GEX_INIT message with a public key and signature. |
Method | test_ |
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_ |
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_ |
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. |
Inherited from ServerSSHTransportBaseCase
:
Method | set |
Undocumented |
Method | tear |
Undocumented |
Inherited from ServerAndClientSSHTransportBaseCase
(via ServerSSHTransportBaseCase
):
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. |
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.
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.
Test that the KEX_DH_GEX_INIT message after the client sends KEX_DH_GEX_REQUEST using a public key signature algorithm other than the default for the public key format causes the server to send a KEX_DH_GEX_INIT message with a public key and signature.
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.