module documentation

Tests for ssh/transport.py and the classes therein.

Class BaseSSHTransportBaseCase Base case for TransportBase tests.
Class BaseSSHTransportCurve25519SHA256Tests curve25519-sha256 tests for TransportBase
Class BaseSSHTransportDHGroupExchangeBaseCase Diffie-Hellman group exchange tests for TransportBase.
Class BaseSSHTransportDHGroupExchangeSHA1Tests diffie-hellman-group-exchange-sha1 tests for TransportBase.
Class BaseSSHTransportDHGroupExchangeSHA256Tests diffie-hellman-group-exchange-sha256 tests for TransportBase.
Class BaseSSHTransportEllipticCurveTests ecdh-sha2-nistp256 tests for TransportBase
Class BaseSSHTransportTests Test TransportBase. It implements the non-server/client specific parts of the SSH transport protocol.
Class ClientSSHTransportBaseCase Base case for SSHClientTransport tests.
Class ClientSSHTransportCurve25519SHA256Tests curve25519-sha256 tests for SSHClientTransport.
Class ClientSSHTransportDHGroupExchangeBaseCase Diffie-Hellman group exchange tests for SSHClientTransport.
Class ClientSSHTransportDHGroupExchangeSHA1Tests diffie-hellman-group-exchange-sha1 tests for SSHClientTransport.
Class ClientSSHTransportDHGroupExchangeSHA256Tests diffie-hellman-group-exchange-sha256 tests for SSHClientTransport.
Class ClientSSHTransportECDHBaseCase Elliptic Curve Diffie-Hellman tests for SSHClientTransport.
Class ClientSSHTransportECDHTests ecdh-sha2-nistp256 tests for SSHClientTransport.
Class ClientSSHTransportTests Tests for SSHClientTransport.
Class Curve25519SHA256Mixin Mixin for curve25519-sha256 tests.
Class DHGroupExchangeSHA1Mixin Mixin for diffie-hellman-group-exchange-sha1 tests.
Class DHGroupExchangeSHA256Mixin Mixin for diffie-hellman-group-exchange-sha256 tests.
Class ECDHMixin Mixin for elliptic curve diffie-hellman tests.
Class GetMACTests Tests for SSHCiphers._getMAC.
Class MockCipher A mocked-up version of twisted.conch.ssh.transport.SSHCiphers.
Class MockCompression A mocked-up compression, based on the zlib interface. Instead of compressing, it reverses the data and adds a 0x66 byte to the end.
Class MockFactory A mocked-up factory based on twisted.conch.ssh.factory.SSHFactory.
Class MockOldFactoryPrivateKeys The old SSHFactory returned mappings from key names to cryptography key objects from getPrivateKeys(). We return those here for testing.
Class MockOldFactoryPublicKeys The old SSHFactory returned mappings from key names to strings from getPublicKeys(). We return those here for testing.
Class MockService A mocked-up service, based on twisted.conch.ssh.service.SSHService.
Class MockTransportBase A base class for the client and server protocols. Stores the messages it receives instead of ignoring them.
Class ServerAndClientSSHTransportBaseCase Tests that need to be run on both the server and the client.
Class ServerSSHTransportBaseCase Base case for SSHServerTransport tests.
Class ServerSSHTransportCurve25519SHA256Tests curve25519-sha256 tests for SSHServerTransport.
Class ServerSSHTransportDHGroupExchangeBaseCase Diffie-Hellman group exchange tests for SSHServerTransport.
Class ServerSSHTransportDHGroupExchangeSHA1Tests diffie-hellman-group-exchange-sha1 tests for SSHServerTransport.
Class ServerSSHTransportDHGroupExchangeSHA256Tests diffie-hellman-group-exchange-sha256 tests for SSHServerTransport.
Class ServerSSHTransportECDHBaseCase Elliptic Curve Diffie-Hellman tests for SSHServerTransport.
Class ServerSSHTransportECDHTests ecdh-sha2-nistp256 tests for SSHServerTransport.
Class ServerSSHTransportTests Tests for SSHServerTransport.
Class SSHCiphersTests Tests for the SSHCiphers helper class.
Class TransportLoopbackTests Test the server transport and client transport against each other,
Class TransportTestCase Base class for transport test cases.
Function generatePredictableKey Undocumented
Function skipWithoutX25519 Undocumented
Constant X25519_SUPPORTED Undocumented
Variable cryptography Undocumented
Variable dependencySkip Undocumented
Variable pyasn1 Undocumented
Function _MPpow Return the MP version of (x ** y) % z.
def generatePredictableKey(transport): (source)

Undocumented

def skipWithoutX25519(f): (source)

Undocumented

X25519_SUPPORTED = (source)

Undocumented

Value
default_backend().x25519_supported()
cryptography = (source)

Undocumented

dependencySkip = (source)

Undocumented

Undocumented

def _MPpow(x, y, z): (source)

Return the MP version of (x ** y) % z.