summaryrefslogtreecommitdiff
path: root/src/SHA256.c
Commit message (Collapse)AuthorAgeFilesLines
* FIX #1096857. Update reference to FIPS 180-4.Legrandin2013-07-141-1/+1
| | | | Closes: https://bugs.launchpad.net/pycrypto/+bug/1096857
* Improve C extension autodocsDwayne Litzenberger2013-07-141-1/+7
| | | | | | | | - Add __all__ to C cipher & hash modules - Update hash module docstrings to document the block_size and digest_size variables. Closes: https://bugs.launchpad.net/pycrypto/+bug/1179255
* Add pycrypto_common.h and clean up a bunch of miscellaneous includes & typedefsDwayne Litzenberger2013-04-211-0/+3
|
* Hash: Speed up initialization by removing pure-Python wrappershash-speedup-wipDwayne Litzenberger2013-02-171-3/+18
| | | | | | | | | | | | 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-0/+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.
* Merged from upstream (py3k support) and modified so that all unit tests pass.Legrandin2011-10-181-1/+0
|\
| * Merge branch 'master' into py3kDwayne C. Litzenberger2011-10-101-0/+1
| |\ | | | | | | | | | | | | | | | Conflicts: setup.py src/_fastmath.c
| * | Changes to allow pycrpyto to work on Python 3.x as well as 2.1 through 2.7Thorsten Behrens2010-12-281-1/+2
| | |
* | | Added Lorenz Quack's native C implementation of all SHA-2 algorithmLegrandin2011-10-161-217/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* | | Merged with upstream.Legrandin2011-09-201-0/+1
|\ \ \ | | |/ | |/|
| * | Add variable block size support to HMAC-SHA384 and HMAC-SHA512 which useFrédéric Bertolus2011-04-081-0/+1
| |/ | | | | | | block of 128 bytes long
* | Add OID to each hash algorithm.Legrandin2011-02-031-0/+13
|/
* SHA256.c: Replace the legal noticeDwayne C. Litzenberger2009-08-021-2/+23
| | | | I have permission to do this. See the LEGAL directory.
* Reduce symbol table pollution by declaring most things "static".Dwayne C. Litzenberger2009-03-041-3/+3
| | | | Handy command: nm -g --extern-only `find . -name \*.so`
* Fix some more compiler warnings (gcc/Linux-i386)Dwayne C. Litzenberger2008-09-151-1/+1
|
* Whitespace: Replace CRLF with LF in src/SHA256.cDwayne C. Litzenberger2008-09-151-209/+209
| | | | | | | The canonical line terminator in a git repository is the LF character (ASCII 10), and Win32 versions of git now do CRLF <-> LF conversions by default. So, despite what one might think, this actually makes things easier for developers using Win32.
* [project @ akuchling-20051130021621-801cd274a9838593]akuchling2005-11-291-12/+21
| | | | | [project @ 2005-11-29 18:16:21 by akuchling] Fix 32-bit length limitation in SHA256
* [project @ akuchling-20051130003136-46251f33241838ee]akuchling2005-11-291-2/+2
| | | | | [project @ 2005-11-29 16:31:36 by akuchling] Fix SHA256 padding bug
* [project @ akuchling-20050611022255-6c23c4eace44d242]akuchling2005-06-101-1/+3
| | | | | [project @ 2005-06-10 19:22:55 by akuchling] [Mentioned in bug #1154530] SHA256 didn't work correctly on Alpha
* [project @ akuchling-20050611021758-7931db340216dfce]akuchling2005-06-101-11/+16
| | | | | [project @ 2005-06-10 19:17:58 by akuchling] [Bug #1185980] Fix SHA256 on AMD64
* [project @ akuchling-20031220025128-a9e2449d8bc6e4f2]akuchling2003-12-191-0/+193
[project @ 2003-12-19 18:51:28 by akuchling] Add SHA256.c file