Home | Trees | Index | Help |
---|
Package paramiko :: Module rsakey :: Class RSAKey |
|
object
--+ |PKey
--+ | RSAKey
Method Summary | |
---|---|
Create a new instance of this public key type. | |
__hash__(self)
| |
string |
Return a string of an SSH Message made up of the public part(s) of
this key. |
string |
Return the name of this private key implementation. |
Read private key contents from a file into this object. | |
Message
|
Sign a blob of data with this private key, and return a Message representing an SSH signature
message. |
boolean |
Given a blob of data, and an SSH message representing a signature of that data, verify that it was signed with this key. |
turn a 20-byte SHA1 hash into a blob of data as large as the key's N, using PKCS1's "emsa-pkcs1-v1_5" encoding. | |
Inherited from PKey | |
int |
Compare this key to another. |
string |
Return an MD5 fingerprint of the public part of this key. |
string |
Read an SSH2-format private key file, looking for a string of the type "BEGIN xxx PRIVATE KEY" for some xxx ,
base64-decode the text we find, and return it as a string. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T |
Class Variable Summary | |
---|---|
Inherited from PKey | |
dict |
_CIPHER_TABLE = {'DES-EDE3-CBC': {'cipher': <module 'Cry...
|
Method Details |
---|
__init__(self,
msg=None,
data='')
Create a new instance of this public key type. If |
__str__(self)
Return a string of an SSH |
get_name(self)Return the name of this private key implementation.
|
read_private_key_file(self, filename, password=None)Read private key contents from a file into this object. If the private key is encrypted andpassword is not
None , the given password will be used to decrypt the key
(otherwise PasswordRequiredException is thrown).
|
sign_ssh_data(self, randpool, data)Sign a blob of data with this private key, and return aMessage representing an SSH signature
message.
|
verify_ssh_sig(self, data, msg)Given a blob of data, and an SSH message representing a signature of that data, verify that it was signed with this key.
|
_pkcs1imify(self, data)turn a 20-byte SHA1 hash into a blob of data as large as the key's N, using PKCS1's "emsa-pkcs1-v1_5" encoding. totally bizarre. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Sun Jan 4 02:33:11 2004 | http://epydoc.sf.net |