RSA Key Pair.
|
|
|
|
|
|
|
|
| __init__(self,
rsa,
_pyfree=0) |
|
|
|
|
|
|
|
as_pem(self,
cipher='aes_128_cbc',
callback=<function passphrase_callback at 0x83b2a04>)
Returns the key(pair) as a string in PEM format. |
|
|
|
|
|
|
|
|
|
|
| private_decrypt(self,
data,
padding) |
|
|
|
|
| private_encrypt(self,
data,
padding) |
|
|
|
|
|
|
|
| public_decrypt(self,
data,
padding) |
|
|
|
|
| public_encrypt(self,
data,
padding) |
|
|
|
|
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 an M2Crypto.BIO.BIO object in PEM format. |
|
|
|
|
save_key_der(self,
file)
Save the key pair to a file in DER format. |
|
|
|
|
save_key_der_bio(self,
bio)
Save the key pair to an M2Crypto.BIO.BIO object in DER format. |
|
|
|
|
save_pem(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(self,
file)
Save the public key 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. |
|
|
|
|
sign(self,
digest,
algo='sha1')
Signs a digest with the private key |
|
|
|
|
sign_rsassa_pss(self,
digest,
algo='sha1',
salt_length=20)
Signs a digest with the private key using RSASSA-PSS |
|
|
|
|
verify(self,
data,
signature,
algo='sha1')
Verifies the signature with the public key |
|
|
|
|
verify_rsassa_pss(self,
data,
signature,
algo='sha1',
salt_length=20)
Verifies the signature RSASSA-PSS |
|
|