class documentation

Diffie-Hellman group exchange tests for SSHServerTransport.

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.
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_rsa_sha2_512 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_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_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.

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_disconnectIfCantMatchCipher Like test_disconnectIfCantMatchKex, but for the encryption.
Method test_disconnectIfCantMatchCompression Like test_disconnectIfCantMatchKex, but for the compression.
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_disconnectIfCantMatchMAC Like test_disconnectIfCantMatchKex, but for the MAC.
Method test_getHost Test that the transport's getHost method returns an SSHTransportAddress with the IAddress of the host.
Method test_getPeer Test that the transport's getPeer method returns an SSHTransportAddress with the IAddress of the peer.
def test_KEX_DH_GEX_INIT_after_REQUEST(self): (source)

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.

def test_KEX_DH_GEX_INIT_after_REQUEST_OLD(self): (source)

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.

def test_KEX_DH_GEX_INIT_after_REQUEST_rsa_sha2_512(self): (source)

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.

def test_KEX_DH_GEX_REQUEST(self, keyAlgorithm=b'ssh-rsa'): (source)

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.

def test_KEX_DH_GEX_REQUEST_OLD(self): (source)

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.

def test_KEX_DH_GEX_REQUEST_OLD_badKexAlg(self): (source)

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.