Part of twisted.conch.ssh View Source
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 30 | Class | BadKeyError | raised when a key isn't what we expected from it. |
| 37 | Function | getPublicKeyString | Return a public key string given a filename or data of a public key. |
| 57 | Function | getPublicKeyString_lsh | Undocumented |
| 72 | Function | getPublicKeyString_openssh | Undocumented |
| 78 | Function | makePublicKeyString | Return an public key given a
Crypto.PublicKey.pubkey.pubkey
|
| 97 | Function | makePublicKeyString_lsh | Undocumented |
| 113 | Function | makePublicKeyString_openssh | Undocumented |
| 128 | Function | getPublicKeyObject | Return a Crypto.PublicKey.pubkey.pubkey corresponding to
the SSHv2
|
| 150 | Function | getPrivateKeyObject | Return a Crypto.PublicKey.pubkey.pubkey object
corresponding to the
|
| 174 | Function | getPrivateKeyObject_lsh | Undocumented |
| 191 | Function | getPrivateKeyObject_openssh | Undocumented |
| 220 | Function | getPrivateKeyObject_agentv3 | Undocumented |
| 242 | Function | makePrivateKeyString | Return an OpenSSH-style private key for a |
| 263 | Function | makePrivateKeyString_lsh | Undocumented |
| 290 | Function | makePrivateKeyString_openssh | Undocumented |
| 326 | Function | makePrivateKeyString_agentv3 | Undocumented |
| 338 | Function | makePublicKeyBlob | Undocumented |
| 349 | Function | makePrivateKeyBlob | Undocumented |
| 361 | Function | objectType | Return the SSH key type corresponding to a
Crypto.PublicKey.pubkey.pubkey
|
| 376 | Function | pkcs1Pad | Undocumented |
| 380 | Function | pkcs1Digest | Undocumented |
| 384 | Function | lenSig | Undocumented |
| 387 | Function | signData | Sign the data with the given
Crypto.PublicKey.pubkey.pubkey object.
|
| 402 | Function | signData_rsa | Undocumented |
| 407 | Function | signData_dsa | Undocumented |
| 418 | Function | verifySignature | Verify that the signature for the data is valid. |
| 437 | Function | verifySignature_rsa | Undocumented |
| 441 | Function | verifySignature_dsa | Undocumented |
| 448 | 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
) | |