Commit graph

13 commits

Author SHA1 Message Date
Legrandin
7073325ff7 Update to documentation 2015-07-19 19:12:47 +00:00
Legrandin
b6321900a7 Cleaning up the Hash module 2015-01-30 22:38:51 +01:00
Legrandin
251fbd8e8c Hide private modules from documentation 2014-06-16 20:38:26 +02:00
Legrandin
d83380a048 Removed support for Python<2.4 2014-06-16 20:36:35 +02:00
Legrandin
be12a401f1 Merge branch 'sha3' of https://github.com/bluviolin/pycrypto 2014-05-05 21:31:19 +02:00
Legrandin
da79b781af Add support for CMAC
This patch adds support for CMAC (RFC4493, NIST SP800-38B).

[dlitz@dlitz.net: Replaced MacMismatchError with ValueError]
[dlitz@dlitz.net: Whitespace fixed with "git rebase --whitespace=fix"]
2013-10-20 13:30:21 -07:00
Fabrizio Tarizzo
24df7d3c5d Merge with upstream updates 2013-04-28 12:06:18 +02:00
Dwayne Litzenberger
0d8ea5ff16 Hash: Generic Crypto.Hash.new(algo, [data]) function
This allows us to instantiate a new hash given only an existing hash
object.
2013-02-17 19:18:29 -08:00
Dwayne Litzenberger
755375bb7d Hash: Rename SHA->SHA1 and RIPEMD->RIPEMD160 (1/2)
These algorithm names were confusing, because there are actually
algorithms called "SHA" (a.k.a. SHA-0) and "RIPEMD" (the original
version).

This commit just renames the modules, with no backward-compatibility
support.
2013-02-16 16:20:23 -08:00
Legrandin
2f8a86bd83 Added documentation for all hash algorithms
(including for HMAC which, strictly speaking, does not belong with them).
2012-05-05 23:37:19 +02:00
Legrandin
897b75983c Added Lorenz Quack's native C implementation of all SHA-2 algorithm
(as submitted here https://bugs.launchpad.net/pycrypto/+bug/544792)
so that they are available also in Python 2.1, 2.2, 2.3 and 2.4.

Regardless where the implementation comes from (Python standard
library or our native modules, depending on the Python version),
all Crypto.Hash objects are always used as front-ends.
2011-10-16 22:41:21 +02:00
Dwayne C. Litzenberger
494cad8bc9 Legal: Add PD dedication to __init__.py files and hash stubs
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).
2009-03-01 10:23:08 -05: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 Hash/__init__.py (Browse further)