Patches item #935454, was opened at 2004-04-14 23:57 Message generated for change (Comment added) made by greg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=935454&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core (C code) Group: Python 2.4 >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Trevor Perrin (trevp) Assigned to: Gregory P. Smith (greg) Summary: sha256 module Initial Comment: This module is a copy of shamodule.c, with the SHA-1 compression function replaced with the SHA-256 compression function (copied from the LibTomCrypt public-domain crypto library). SHA-256 is similar to SHA-1: it's a US Federal Standard hash algorithm (FIPS 180-2). The difference is that it produces a 256 bit hash value, instead of a 160 bit hash value. SHA-256 thus has 128 bits of resistance against birthday attacks, which makes it secure in certain protocols where SHA-1 is questionable (e.g. digital signatures; or RNGs or Key-Derivation Functions where you want to produce keys for 256-bit ciphers). There's other flavors of SHA, but they're not as useful: SHA-384 and SHA-512 are defined on 64-bit values, so are slow on 32-bit architectures. SHA-224 is just silly (it saves 32 bits over SHA-256; that's its sole rationale). ---------------------------------------------------------------------- >Comment By: Gregory P. Smith (greg) Date: 2005-08-21 11:54 Message: Logged In: YES user_id=413 sha224, 256, 384 and 512 support derived from this code for use when the available openssl library does not support them has been committed to python cvs HEAD as part of SF patch 1121611. thanks! ---------------------------------------------------------------------- Comment By: Gregory P. Smith (greg) Date: 2005-02-21 08:05 Message: Logged In: YES user_id=413 i'll take care of this patch along with patch 1121611 using these sha 256/512 implementations when openssl doesn't include its own implementations (current common versions of openssl don't, future versions will). ---------------------------------------------------------------------- Comment By: Trevor Perrin (trevp) Date: 2004-07-14 00:04 Message: Logged In: YES user_id=973611 New set of files - full source, patches, and docs for all new SHA versions. Cleans things up a bit: - sha256.c, sha512.c - sha224.py, sha384.py (wrappers) - test_sha*.py - libsha*.tex ---------------------------------------------------------------------- Comment By: Trevor Perrin (trevp) Date: 2004-07-13 01:10 Message: Logged In: YES user_id=973611 2nd version of documentation for sha256 and sha512 ---------------------------------------------------------------------- Comment By: Trevor Perrin (trevp) Date: 2004-07-02 01:00 Message: Logged In: YES user_id=973611 Uploading a new sha256 module with a sha224 function, and a sha512 module with a sha384 function. ---------------------------------------------------------------------- Comment By: Trevor Perrin (trevp) Date: 2004-06-30 23:48 Message: Logged In: YES user_id=973611 I'm uploading an attempt at documentation for this module. I had trouble installing the tex tools so I'm not sure if it's correct, but it should be easy to fix if not. I'll try to straighten myself out with the tools so I can make sure. ---------------------------------------------------------------------- Comment By: A.M. Kuchling (akuchling) Date: 2004-06-29 07:23 Message: Logged In: YES user_id=11375 I can't rule on whether the module should be added or not, so I'll bring it up on python-dev. Feel free to join the resulting thread. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=935454&group_id=5470 _______________________________________________ Patches mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/patches
