summaryrefslogtreecommitdiff
path: root/lib/Crypto/Hash/MD5.py
Commit message (Collapse)AuthorAgeFilesLines
* Hash: Speed up initialization by removing pure-Python wrappershash-speedup-wipDwayne Litzenberger2013-02-171-43/+47
| | | | | | | | | | | | The pure Python wrappers around Crypto.Hash.* were convenient, but they slowed down hash initialization by 4-7x. There is a speed trade-off here: The MD5 and SHA1 objects are just wrapped hashlib objects (or old-style md5/sha objects). To maintain API compatibility with the rest of PyCrypto, we still have to wrap them, so they're slower to initialize than the rest of the hash functions. If hashlib ever adds a .new() method, we will automatically use hashlib directly and gain the initialization speed-up.
* Hash: Remove "oid" attributes; add "name" attributeDwayne Litzenberger2013-02-171-10/+1
| | | | | | | | | | | | In PyCrypto v2.5, the "oid" attribute was added to hash objects. In retrospect, this was not a good idea, since the OID is not really a property of the hash algorithm, it's a protocol-specific identifer for the hash functions. PKCS#1 v1.5 uses it, but other protocols (e.g. OpenPGP, DNSSEC, SSH, etc.) use different identifiers, and it doesn't make sense to add these to Crypto.Hash.* every time a new algorithm is added. This also has the benefit of being compatible with the Python standard library's "hashlib" objects, which also have a name attribute.
* Fix typos in docsDwayne C. Litzenberger2012-05-231-1/+1
|
* Added documentation for all hash algorithmsLegrandin2012-05-051-21/+63
| | | | (including for HMAC which, strictly speaking, does not belong with them).
* Merged from upstream (py3k support) and modified so that all unit tests pass.Legrandin2011-10-181-2/+3
|\
| * Changes to allow pycrpyto to work on Python 3.x as well as 2.1 through 2.7Thorsten Behrens2010-12-281-3/+5
| |
* | Simplify wrapper, as digest_size is known in advance each time.Legrandin2011-02-071-3/+3
| |
* | Fixed typoLegrandin2011-02-061-1/+1
| |
* | First fully tested version of Crypto.Signature.PKCS1_PSSLegrandin2011-02-061-0/+1
| |
* | Add OID to each hash algorithm.Legrandin2011-02-031-7/+18
|/
* Legal: Add PD dedication to __init__.py files and hash stubsDwayne C. Litzenberger2009-03-011-0/+19
| | | | | | | | From what I can tell, the authors of these files are: - Andrew Kuchling (who has dedicated his contributions to the public domain); and/or - Dwayne Litzenberger (myself).
* cleanup: Move modules to "lib/Crypto" subdirectory.Dwayne C. Litzenberger2009-02-281-0/+23
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.