A mocked-up version of twisted.conch.ssh.transport.SSHCiphers.

Method encrypt Called to encrypt the packet. Simply record that encryption was used and return the data unchanged.
Method decrypt Called to decrypt the packet. Simply record that decryption was used and return the data unchanged.
Method makeMAC Make a Message Authentication Code by sending the character value of the outgoing packet.
Method verify Verify the Message Authentication Code by checking that the packet sequence number is the same.
Method setKeys Record the keys.
def encrypt(self, x):

Called to encrypt the packet. Simply record that encryption was used and return the data unchanged.

def decrypt(self, x):

Called to decrypt the packet. Simply record that decryption was used and return the data unchanged.

def makeMAC(self, outgoingPacketSequence, payload):

Make a Message Authentication Code by sending the character value of the outgoing packet.

def verify(self, incomingPacketSequence, packet, macData):

Verify the Message Authentication Code by checking that the packet sequence number is the same.

def setKeys(self, ivOut, keyOut, ivIn, keyIn, macIn, macOut):

Record the keys.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.