This class is a context supporting DSA key and parameter values,
signing and verifying.
|
|
|
__init__(self,
dsa,
_pyfree=0)
Use one of the factory functions to create an instance. |
|
|
|
|
int
|
__len__(self)
Return the key length. |
|
|
str
|
__getattr__(self,
name)
Return specified DSA parameters and key values. |
|
|
|
__setattr__(self,
name,
value) |
|
|
|
|
|
gen_key(self)
Generate a key pair. |
|
|
|
save_params(self,
filename)
Save the DSA parameters to a file. |
|
|
|
|
|
save_key(self,
filename,
cipher=' aes_128_cbc ' ,
callback=<function passphrase_callback at 0x83b2a04>)
Save the DSA key pair to a file. |
|
|
|
save_key_bio(self,
bio,
cipher=' aes_128_cbc ' ,
callback=<function passphrase_callback at 0x83b2a04>)
Save DSA key pair to a BIO object. |
|
|
|
save_pub_key(self,
filename)
Save the DSA public key (with parameters) to a file. |
|
|
|
save_pub_key_bio(self,
bio)
Save DSA public key (with parameters) to a BIO object. |
|
|
tuple
|
sign(self,
digest)
Sign the digest. |
|
|
int
|
verify(self,
digest,
r,
s)
Verify a newly calculated digest against the signature values r and
s. |
|
|
|
|
|
verify_asn1(self,
digest,
blob) |
|
|
int
|
check_key(self)
Check to be sure the DSA object has a valid private key. |
|
|