dlitz/pycrypto — pull request #9 by Legrandin (2011-12-22 14:29:27+00:00)
Title: PKCS#1 encryption and signature, plus some minor functionalities

Hi Dwayne,

Here is a (new) pull requests for all code I developed and I am currently using for PKCS#1.
Unfortunately this is a pretty large chunk of changes that cover multiple subjects.
Let me know if you see a way to make the merge easier.

* Added PKCS#1 encryption schemes (v1.5 and OAEP)
* Added PKCS#1 signature schemes (v1.5 and PSS). v1.5 required some extensive changes to Hash modules to contain the algorithm specific ASN.1 OID. To that end, I thought it was cleaner to always have a (thin) Python module to hide the one in pure C.
* Added 2 standard Key Derivation Functions (PBKDF1 and PBKDF2).
* Added export/import of RSA keys in OpenSSH and PKCS#8 formats.
* Added password-protected export/import of RSA keys (one old method for PKCS#8 PEM only).
* Added ability to generate RSA key pairs with configurable public exponent e.
* Added ability to construct an RSA key pair even if only the private exponent d is known, and not p and q.
* Added SHA-2 C source code (fully from Lorenz Quack).
* Unit tests for all the above.
* Updates to documentation (both inline and in Doc/pycrypt.rst)