sha_digest 2.1

SHA-1, SHA-224, SHA-256, SHA-384 and SHA512 C implementation
sha_digest is a C implementation of the Secure Hashing Algorithms SHA-1, SHA-224, SHA-256, SHA-384 and SHA512 as described in FIPS PUB 180-3, published in October 2008, and described in

FIPS 180-3:

You can either use the result as a library to be linked against your programs, thus supplying all the above hashing algorithms, or you can directly use the source files implementing one or more of these algorithms within your programs.

The implementation is written in (hopefully) standard compliant C (ANSI C89), thread-safe, and should work independently of the underlying hardware (i.e. it should run on e.g. 32-bit systems as well as 64-bit or even 128-bit systems etc.) or the operating system used.


While I implemented the SHA algorithms as good as my abilities and understanding of the standard cited above allow I'm not claiming at all that the implementations are error free. Thus if you intend to use them, especially for use in cryptographic applications, you de- finitely must review and test the code carefully yourself!

last updated on:
August 3rd, 2009, 8:40 GMT
license type:
GPL (GNU General Public License) 
developed by:
Jens Thoms Toerring
ROOT \ Security
Download Button

In a hurry? Add it to your Download Basket!

user rating



Rate it!

Add your review!