Home | Trees | Index | Help |
|
---|
Package twisted :: Package conch :: Package ssh :: Module keys |
|
Handling of RSA and DSA keys.
This module is unstable.
Maintainer: Paul SwartzExceptions | |
---|---|
BadKeyError |
raised when a key isn't what we expected from it. |
Function Summary | |
---|---|
Return a Crypto.PublicKey.pubkey.pubkey object
corresponding to the private key file/data. | |
getPrivateKeyObject_lsh(data,
passphrase)
| |
getPrivateKeyObject_openssh(data,
passphrase)
| |
Crypto.PublicKey.pubkey.pubkey
|
Return a Crypto.PublicKey.pubkey.pubkey corresponding to
the SSHv2 public key data. |
str
|
Return a public key string given a filename or data of a public key. |
getPublicKeyString_lsh(data)
| |
getPublicKeyString_openssh(data)
| |
lenSig(obj)
| |
makePrivateKeyBlob(obj)
| |
str
|
Return an OpenSSH-style private key for a Crypto.PublicKey.pubkey.pubkey object. |
makePrivateKeyString_lsh(obj,
passphrase)
| |
makePrivateKeyString_openssh(obj,
passphrase)
| |
makePublicKeyBlob(obj)
| |
str
|
Return an public key given a Crypto.PublicKey.pubkey.pubkey object. |
makePublicKeyString_lsh(obj)
| |
makePublicKeyString_openssh(obj,
comment)
| |
str
|
Return the SSH key type corresponding to a Crypto.PublicKey.pubkey.pubkey object. |
pkcs1Digest(data,
lMod)
| |
pkcs1Pad(data,
lMod)
| |
Pretty print a Crypto.PublicKey.pubkey.pubkey object. | |
str
|
Sign the data with the given Crypto.PublicKey.pubkey.pubkey object. |
signData_dsa(obj,
data)
| |
signData_rsa(obj,
data)
| |
bool
|
Verify that the signature for the data is valid. |
verifySignature_dsa(obj,
sig,
data)
| |
verifySignature_rsa(obj,
sig,
data)
|
Variable Summary | |
---|---|
str |
ID_SHA1 = '0!0\t\x06\x05+\x0e\x03\x02\x1a\x05\x00\x04\x1...
|
Function Details |
---|
getPrivateKeyObject(filename=None, data='', passphrase='')Return aCrypto.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.
|
getPublicKeyObject(data)Return aCrypto.PublicKey.pubkey.pubkey corresponding
to the SSHv2 public key data. data is in the over-the-wire public key
format.
|
getPublicKeyString(filename=None, line=0, data='')Return a public key string given a filename or data of a public key. Currently handles OpenSSH and LSH keys.
|
makePrivateKeyString(obj, passphrase=None, kind='openssh')Return an OpenSSH-style private key for aCrypto.PublicKey.pubkey.pubkey object. If passphrase is
given, encrypt the private key with it. kind is one of ('openssh',
'lsh')
|
makePublicKeyString(obj, comment='', kind='openssh')Return an public key given aCrypto.PublicKey.pubkey.pubkey object. kind is one of
('openssh', 'lsh')
|
objectType(obj)Return the SSH key type corresponding to aCrypto.PublicKey.pubkey.pubkey object.
|
printKey(obj)Pretty print aCrypto.PublicKey.pubkey.pubkey
object.
|
signData(obj, data)Sign the data with the givenCrypto.PublicKey.pubkey.pubkey object.
|
verifySignature(obj, sig, data)Verify that the signature for the data is valid.
|
Variable Details |
---|
ID_SHA1
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:11 2004 | http://epydoc.sf.net |