Mercurial > projects > dcrypt
diff dcrypt/crypto/hashes/SHA1.d @ 6:5cb17e09d685
Minor edits to the unittests of hash functions and ciphers. Added AES and test vectors.
author | Thomas Dixon <reikon@reikon.us> |
---|---|
date | Sat, 16 Aug 2008 22:43:22 -0400 |
parents | a5789a7b3b3b |
children | 4589f8c5eb3c |
line wrap: on
line diff
--- a/dcrypt/crypto/hashes/SHA1.d Thu Aug 14 23:51:56 2008 -0400 +++ b/dcrypt/crypto/hashes/SHA1.d Sat Aug 16 22:43:22 2008 -0400 @@ -10,7 +10,13 @@ public import dcrypt.crypto.Hash; -/** Implementation of SHA-1. */ +/** + * Implementation of the US NSA's SHA-1. + * + * Conforms: FIPS 180-1 + * References: http://www.itl.nist.gov/fipspubs/fip180-1.htm + * Bugs: SHA-1 is not cryptographically secure. + */ class SHA1 : Hash { protected uint h0, h1, h2, h3, h4;