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