|
|
|
|
|
|
|
|
__init__(self,
pkey=None,
_pyfree=0,
md='sha1') |
|
|
|
|
|
|
|
reset_context(self,
md='sha1')
Reset internal message digest context. |
|
|
|
|
sign_init(self)
Initialise signing operation with self. |
|
|
|
|
sign_update(self,
data)
Feed data to signing operation. |
|
|
|
string
|
|
|
|
update(self,
data)
Feed data to signing operation. |
|
|
|
string
|
final(self)
Return signature. |
|
|
|
|
verify_init(self)
Initialise signature verification operation with self. |
|
|
|
|
|
|
int
|
|
|
int
|
assign_rsa(self,
rsa,
capture=1)
Assign the RSA key pair to self. |
|
|
|
|
get_rsa(self)
Return the underlying RSA key if that is what the EVP instance is
holding. |
|
|
|
|
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_key_bio(self,
bio,
cipher='aes_128_cbc',
callback=<function passphrase_callback at 0x83b2a04>)
Save the key pair to the M2Crypto.BIO object 'bio' in PEM format. |
|
|
|
|
as_pem(self,
cipher='aes_128_cbc',
callback=<function passphrase_callback at 0x83b2a04>)
Return key in PEM format in a string. |
|
|
|
|
as_der(self)
Return key in DER format in a string |
|
|
|
|
size(self)
Return the size of the key in bytes. |
|
|
|
|
get_modulus(self)
Return the modulus in hex format. |
|
|