Part of twisted.conch.ssh View Source
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 | 
| Class | Key | An object representing a key. A key can be either a public or | 
| Function | getPublicKeyString | Return a public key string suitable for being sent over the wire. | 
| Function | makePublicKeyString | Return an public key given a 
Crypto.PublicKey.pubkey.pubkey | 
  
| Function | getPublicKeyObject | Return a Crypto.PublicKey.pubkey.pubkey corresponding to 
the SSHv2 | 
  
| Function | getPrivateKeyObject | Return a Crypto.PublicKey.pubkey.pubkey object 
corresponding to the | 
  
| Function | makePrivateKeyString | Return an OpenSSH-style private key for a | 
| Function | makePublicKeyBlob | Make a public key blob from a 
Crypto.PublicKey.pubkey.pubkey. | 
  
| Function | objectType | Return the SSH key type corresponding to a 
Crypto.PublicKey.pubkey.pubkey | 
  
| Function | pkcs1Pad | Pad out data to messageLength according to the PKCS#1 standard. | 
| Function | pkcs1Digest | Create a message digest using the SHA1 hash algorithm according to the | 
| Function | lenSig | Return the length of the signature in bytes for a key object. | 
| Function | signData | Sign the data with the given Crypto.PublicKey.pubkey.pubkey
object. | 
  
| Function | verifySignature | Verify that the signature for the data is valid. | 
| Function | printKey | Pretty print a Crypto.PublicKey.pubkey.pubkey object. | 
  
This function has been deprecated since Twisted Conch 0.9. Use Key.fromString() instead.
| Parameters | filename |  (type: str
) | 
| line |  (type: int
) | |
| data |  (type: str
) | |
| Returns |  (type: str
) | |
Crypto.PublicKey.pubkey.pubkey
object. kind is one of ('openssh', 'lsh')
This function is deprecated since Twisted Conch 0.9. Instead use Key(obj).toString().
| Parameters | obj |  (type: Crypto.PublicKey.pubkey.pubkey
) | 
| comment |  (type: str
) | |
| kind |  (type: str
) | |
| Returns |  (type: str
) | |
Crypto.PublicKey.pubkey.pubkey corresponding to 
the SSHv2 public key data.  data is in the over-the-wire public key 
format.
This function is deprecated since Twisted Conch 0.9. Instead, use Key.fromString().
| Parameters | data |  (type: str
) | 
| Returns |  (type: Crypto.PublicKey.pubkey.pubkey
) | |
Crypto.PublicKey.pubkey.pubkey object 
corresponding to the private key file/data.  If the private key is 
encrypted, passphrase must be specified, other wise a BadKeyError
will be raised.
This method is deprecated since Twisted Conch 0.9. Instead, use the fromString or fromFile classmethods of Key.
| Parameters | filename |  (type: str
) | 
| data |  (type: str
) | |
| passphrase |  (type: str
) | |
| Returns |  (type: Crypto.PublicKey.pubkey.pubkey
) | |
| Raises | BadKeyError | if the key is invalid or a passphrase is not specified | 
Crypto.PublicKey.pubkey.pubkey object.  If passphrase is 
given, encrypt the private key with it. kind is one of ('openssh', 'lsh', 
'agentv3')
This function is deprecated since Twisted Conch 0.9. Instead use Key(obj).toString().
| Parameters | obj |  (type: Crypto.PublicKey.pubkey.pubkey
) | 
| passphrase |  (type: str/None
) | |
| kind |  (type: str
) | |
| Returns |  (type: str
) | |
Crypto.PublicKey.pubkey.pubkey.
This function is deprecated since Twisted Conch 0.9. Use Key().blob() instead.
Crypto.PublicKey.pubkey.pubkey object.| Parameters | obj |  (type: Crypto.PublicKey.pubkey.pubkey
) | 
| Returns |  (type: str
) | |
| Parameters | data |  (type: str
) | 
| messageLength |  (type: int
) | 
| Parameters | data |  (type: str
) | 
| messageLength |  (type: str
) | 
| Parameters | obj |  (type: Crypto.PublicKey.pubkey.pubkey
) | 
| Returns |  (type: long
) | |
Crypto.PublicKey.pubkey.pubkey
object.
This method is deprecated since Twisted Conch 0.9. Instead use Key().sign().
| Parameters | obj |  (type: Crypto.PublicKey.pubkey.pubkey
) | 
| data |  (type: str
) | |
| Returns |  (type: str
) | |
This method is deprecated since Twisted Conch 0.9. Use Key().verify().
| Parameters | obj |  (type: Crypto.PublicKey.pubkey.pubkey
) | 
| sig |  (type: str
) | |
| data |  (type: str
) | |
| Returns |  (type: bool
) | |
Crypto.PublicKey.pubkey.pubkey object.
This function is deprecated since Twisted Conch 0.9. Use repr(Key()).
| Parameters | obj |  (type: Crypto.PublicKey.pubkey.pubkey
) |