Object interface to a EC key pair.
|
|
|
__init__(self,
ec,
_pyfree=0) |
|
|
|
|
|
|
|
gen_key(self)
Generates the key pair from its parameters. |
|
|
|
|
|
sign_dsa(self,
digest)
Sign the given digest using ECDSA. |
|
|
|
verify_dsa(self,
digest,
r,
s)
Verify the given digest using ECDSA. |
|
|
|
sign_dsa_asn1(self,
digest) |
|
|
|
verify_dsa_asn1(self,
digest,
blob) |
|
|
|
compute_dh_key(self,
pub_key)
Compute the ECDH shared key of this key pair and the given public key
object. |
|
|
|
save_key_bio(self,
bio,
cipher=' aes_128_cbc ' ,
callback=<function passphrase_callback at 0x83b2a04>)
Save the key pair to an M2Crypto.BIO.BIO object in PEM format. |
|
|
|
save_key(self,
file,
cipher=' aes_128_cbc ' ,
callback=<function passphrase_callback at 0x83b2a04>)
Save the key pair to a file in PEM format. |
|
|
|
save_pub_key_bio(self,
bio)
Save the public key to an M2Crypto.BIO.BIO object in PEM format. |
|
|
|
save_pub_key(self,
file)
Save the public key to a file in PEM format. |
|
|
|
|