|
__eq__(self,
other)
__eq__(other): 0, 1
Compare us to other for equality. |
|
|
|
__getstate__(self)
To keep key objects platform-independent, the key data is
converted to standard Python long integers before being
written out. |
|
|
|
|
|
__ne__(self,
other)
__ne__(other): 0, 1
Compare us to other for inequality. |
|
|
|
__setstate__(self,
d)
On unpickling a key object, the key data is converted to the big
number representation being used, whether that is Python long
integers, MPZ objects, or whatever. |
|
|
|
blind(self,
M,
B)
blind(M : string|long, B : string|long) : string|long
Blind message M using blinding factor B. |
|
|
|
can_blind(self)
can_blind() : bool
Return a Boolean value recording whether this algorithm can
blind data. |
|
|
|
can_encrypt(self)
can_encrypt() : bool
Return a Boolean value recording whether this algorithm can
encrypt data. |
|
|
|
can_sign(self)
can_sign() : bool
Return a Boolean value recording whether this algorithm can
generate signatures. |
|
|
|
decrypt(self,
ciphertext)
decrypt(ciphertext:tuple|string|long): string
Decrypt 'ciphertext' using this key. |
|
|
|
encrypt(self,
plaintext,
K)
encrypt(plaintext:string|long, K:string|long) : tuple
Encrypt the string or integer plaintext. |
|
|
|
has_private(self)
has_private() : bool
Return a Boolean denoting whether the object contains
private components. |
|
|
|
publickey(self)
publickey(): object
Return a new key object containing only the public information. |
|
|
|
sign(self,
M,
K)
sign(M : string|long, K:string|long) : tuple
Return a tuple containing the signature for the message M. |
|
|
|
size(self)
size() : int
Return the maximum number of bits that can be handled by this key. |
|
|
|
unblind(self,
M,
B)
unblind(M : string|long, B : string|long) : string|long
Unblind message M using blinding factor B. |
|
|
|
validate(self,
M,
signature) |
|
|
|
verify(self,
M,
signature)
verify(M:string|long, signature:tuple) : bool
Verify that the signature is valid for the message M;
returns true if the signature checks out. |
|
|