diff dcrypt/crypto/hashes/SHA256.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/SHA256.d	Thu Aug 14 23:51:56 2008 -0400
+++ b/dcrypt/crypto/hashes/SHA256.d	Sat Aug 16 22:43:22 2008 -0400
@@ -10,7 +10,12 @@
 
 public import dcrypt.crypto.Hash;
 
-/** Implementation of SHA-256. */
+/**
+ * Implementation of the US NSA's SHA-256.
+ *
+ * Conforms: FIPS-180-2
+ * References: http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf
+ */
 class SHA256 : Hash {
     private const uint[] K = [
         0x428a2f98u, 0x71374491u, 0xb5c0fbcfu, 0xe9b5dba5u,