Part of twisted.conch.ssh View Source
Class | BadKeyError | raised when a key isn't what we expected from it. |
Function | getPublicKeyString | Return a public key string given a filename or data of a public key. |
Function | getPublicKeyString_lsh | Undocumented |
Function | getPublicKeyString_openssh | Undocumented |
Function | makePublicKeyString | Return an public key given a
Crypto.PublicKey.pubkey.pubkey
|
Function | makePublicKeyString_lsh | Undocumented |
Function | makePublicKeyString_openssh | Undocumented |
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 | getPrivateKeyObject_lsh | Undocumented |
Function | getPrivateKeyObject_openssh | Undocumented |
Function | getPrivateKeyObject_agentv3 | Undocumented |
Function | makePrivateKeyString | Return an OpenSSH-style private key for a |
Function | makePrivateKeyString_lsh | Undocumented |
Function | makePrivateKeyString_openssh | Undocumented |
Function | makePrivateKeyString_agentv3 | Undocumented |
Function | makePublicKeyBlob | Undocumented |
Function | makePrivateKeyBlob | Undocumented |
Function | objectType | Return the SSH key type corresponding to a
Crypto.PublicKey.pubkey.pubkey
|
Function | pkcs1Pad | Undocumented |
Function | pkcs1Digest | Undocumented |
Function | lenSig | Undocumented |
Function | signData | Sign the data with the given
Crypto.PublicKey.pubkey.pubkey object.
|
Function | signData_rsa | Undocumented |
Function | signData_dsa | Undocumented |
Function | verifySignature | Verify that the signature for the data is valid. |
Function | verifySignature_rsa | Undocumented |
Function | verifySignature_dsa | Undocumented |
Function | printKey | Pretty print a Crypto.PublicKey.pubkey.pubkey object.
|
Parameters | filename | (type: str
) |
line | (type: int
) | |
data | (type: str
) | |
Returns | (type: str
) |
Crypto.PublicKey.pubkey.pubkey
object. kind is one of
('openssh', 'lsh')
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.
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.
Parameters | filename | (type: str
) |
data | (type: str
) | |
passphrase | (type: str
) | |
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')
Parameters | obj | (type: Crypto.PublicKey.pubkey.pubkey
) |
passphrase | (type: str /None
) | |
kind | (type: str
) | |
Returns | (type: str
) |
Crypto.PublicKey.pubkey.pubkey
object.
Parameters | obj | (type: Crypto.PublicKey.pubkey.pubkey
) |
Returns | (type: str
) |
Crypto.PublicKey.pubkey.pubkey
object.
Parameters | obj | (type: Crypto.PublicKey.pubkey.pubkey
) |
data | (type: str
) | |
Returns | (type: str
) |
Parameters | obj | (type: Crypto.PublicKey.pubkey.pubkey
) |
sig | (type: str
) | |
data | (type: str
) | |
Returns | (type: bool
) |
Crypto.PublicKey.pubkey.pubkey
object.
Parameters | obj | (type: Crypto.PublicKey.pubkey.pubkey
) |