Representation of an ECDSA key which can be used to sign and verify
SSH2 data.
|
|
|
__init__(self,
msg=None,
data=None,
filename=None,
password=None,
vals=None,
file_obj=None)
Create a new instance of this public key type. |
|
|
str
|
__str__(self)
Return a string of an SSH Message made up of the public part(s) of this key. |
|
|
bool
|
can_sign(self)
Return True if this key has the private part necessary
for signing data. |
|
|
int
|
get_bits(self)
Return the number of significant bits in this key. |
|
|
str
|
get_name(self)
Return the name of this private key implementation. |
|
|
Message
|
sign_ssh_data(self,
rpool,
data)
Sign a blob of data with this private key, and return a Message
representing an SSH signature message. |
|
|
boolean
|
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. |
|
|
|
write_private_key(self,
file_obj,
password=None)
Write private key contents into a file (or file-like) object. |
|
|
|
|
Inherited from PKey :
__cmp__ ,
get_base64 ,
get_fingerprint
Inherited from object :
__delattr__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__
|