Handling of RSA and DSA keys.

Maintainer: Paul Swartz

Class BadKeyError Raised when a key isn't what we expected from it.
Class EncryptedKeyError Raised when an encrypted key is presented to fromString/fromFile without a password.
Class Key No summary
Function objectType DEPRECATED. Return the SSH key type corresponding to a Crypto.PublicKey.pubkey.pubkey object.
Function pkcs1Pad Pad out data to messageLength according to the PKCS#1 standard. @type data: str @type messageLength: int
Function pkcs1Digest No summary
Function lenSig Return the length of the signature in bytes for a key object.
@deprecated(Version('Twisted', 15, 5, 0))
def objectType(obj): (source)

DEPRECATED. Return the SSH key type corresponding to a Crypto.PublicKey.pubkey.pubkey object.

ParametersobjKey for which the type is returned. (type: Crypto.PublicKey.pubkey.pubkey)
ReturnsReturn the SSH key type corresponding to a PyCrypto object. (type: str)
def pkcs1Pad(data, messageLength): (source)

Pad out data to messageLength according to the PKCS#1 standard.

def pkcs1Digest(data, messageLength): (source)

Create a message digest using the SHA1 hash algorithm according to the PKCS#1 standard.

def lenSig(obj): (source)

Return the length of the signature in bytes for a key object.

Returns (type: long)
API Documentation for Twisted, generated by pydoctor at 2015-11-29 11:40:45.