Commit graph

17 commits

Author SHA1 Message Date
Legrandin
0701df338c Remove ambiguous method size() from RSA, DSA and ElGamal keys 2015-03-13 20:35:38 +01:00
Legrandin
8e4d6f3518 Update to API documentation. 2015-03-13 20:35:37 +01:00
Legrandin
2cb82bb2a6 Remove progress_func from PublicKey objects 2015-02-25 21:42:49 +01:00
Legrandin
0d0e37a6f0 random_range takes only explicit keywords args 2014-12-06 12:04:12 +01:00
Legrandin
a343e32bc5 Base ElGamal PKS on the new Math module. 2014-12-06 12:04:12 +01:00
Legrandin
1c3c049a4c Clean up Crypto.PublicKey module
This patch does a few things to simplify the public key classes
(RSA, DSA and ElGamal):

* It removes the Crypto.PublicKey.pubkey module. The 3 classes
  do not have an ancestor anymore.
* Methods sign(), verify(), encrypt(), and decrypt() are removed.
* Methods blind() and unblind() are removed.
* Methods can_sign() and can_encrypt() are removed.
* The 3 classes cannot be pickled anymore.
2014-06-16 22:00:03 +02:00
Legrandin
d83380a048 Removed support for Python<2.4 2014-06-16 20:36:35 +02:00
Legrandin
8acf0d7011 Add checks to verify correctness of RSA/DSA/ElGamal keys
When the various components are assembled into an RSA,
DSA or ElGamal key via the construct() method, we must verify
as much as possible if the result is indeed a valid key.
2013-12-22 13:42:37 +01:00
Legrandin
ce92486a1d Add blinding to ElGamal decryption. 2013-04-21 19:29:27 -07:00
Legrandin
8c94c6f5ce Fixed two small bugs in ElGamal code. 2012-04-26 22:46:26 +02:00
Legrandin
ed29118387 Domain parameters for ElGamal and DSA can be freely shared. The message M to sign must really be hash. 2012-04-26 00:10:05 +02:00
Legrandin
9f912f13df Fix to bug #985164 (ElGamal key generation). Fix to missing range check in signature verification. 2012-04-18 23:13:08 +02:00
Legrandin
c8e21380a6 Refreshed documentation for ElGamal. Small corrections to DSA and RSA. 2012-04-18 20:45:38 +02:00
Legrandin
e6ef5dee7b Polished the Crypto.PublicKey page.Added hyperlinks to RFCs. 2012-04-12 23:16:52 +02:00
Dwayne C. Litzenberger
568bebd4f4 ElGamal.py: Replace the legal notice
I have permission to do this.  See the LEGAL directory.
2009-08-02 22:47:09 -04:00
Dwayne C. Litzenberger
133fbaddb8 Crypto.PublicKey: Raise ValueError/TypeError/RuntimeError instead of the various custom "error" exceptions
At some point, it might be a good idea to remove the custom error classes themselves.
2009-04-25 13:57:58 -04:00
Dwayne C. Litzenberger
ff8a657a8d cleanup: Move modules to "lib/Crypto" subdirectory.
This will avoid the previous situation where scripts like the old "test.py"
get included accidentally in a release.  It also frees us to put additional
build scripts in the top-level directory of the source tree.
2009-02-28 13:14:53 -05:00
Renamed from PublicKey/ElGamal.py (Browse further)