class documentation

Diffie-Hellman group exchange tests for SSHClientTransport.

Method begin_KEX_DH_GEX_REPLY Utility for test_KEX_DH_GEX_REPLY and test_disconnectGEX_REPLYBadSignature.
Method test_disconnectGEX_REPLYBadSignature Test that KEX_DH_GEX_REPLY disconnects if the signature is bad.
Method test_disconnectKEX_ECDH_REPLYBadSignature Test that KEX_ECDH_REPLY disconnects if the signature is bad.
Method test_KEX_DH_GEX_GROUP 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_KEX_DH_GEX_REPLY Test that the KEX_DH_GEX_REPLY message results in a verified server.
Method test_KEXINIT_groupexchange KEXINIT packet with a group-exchange key exchange results in a KEX_DH_GEX_REQUEST message.
Constant P1536 Undocumented

Inherited from ClientSSHTransportBaseCase:

Method setUp Undocumented
Method verifyHostKey Mock version of SSHClientTransport.verifyHostKey.
Instance Variable blob Undocumented
Instance Variable calledVerifyHostKey Undocumented
Instance Variable privObj Undocumented

Inherited from ServerAndClientSSHTransportBaseCase (via ClientSSHTransportBaseCase):

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 begin_KEX_DH_GEX_REPLY(self): (source)

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.

def test_disconnectGEX_REPLYBadSignature(self): (source)

Test that KEX_DH_GEX_REPLY disconnects if the signature is bad.

def test_disconnectKEX_ECDH_REPLYBadSignature(self): (source)

Test that KEX_ECDH_REPLY disconnects if the signature is bad.

def test_KEX_DH_GEX_GROUP(self): (source)

Test that the KEX_DH_GEX_GROUP message results in a KEX_DH_GEX_INIT message with the client's Diffie-Hellman public key.

def test_KEX_DH_GEX_REPLY(self): (source)

Test that the KEX_DH_GEX_REPLY message results in a verified server.

def test_KEXINIT_groupexchange(self): (source)

KEXINIT packet with a group-exchange key exchange results in a KEX_DH_GEX_REQUEST message.

Undocumented

Value
int('FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B1
39B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625
E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE
45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208
552BB9ED529077096966D670C354E4ABC9804F1746C08CA237327FFFFFFFFFFFFFFFF',
    16)