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

SourceForge.net noreply at sourceforge.net
Thu Jul 1 02:48:37 EDT 2004


Patches item #935454, was opened at 2004-04-14 23:57
Message generated for change (Comment added) made by trevp
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).





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

>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



More information about the Patches mailing list