[Patches] [ python-Patches-935454 ] sha256 module

SourceForge.net noreply at sourceforge.net
Thu Apr 15 02:57:47 EDT 2004


Patches item #935454, was opened at 2004-04-14 23:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=935454&group_id=5470

Category: Core (C code)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Trevor Perrin (trevp)
Assigned to: Nobody/Anonymous (nobody)
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).





----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=935454&group_id=5470



More information about the Patches mailing list