Mercurial > projects > dcrypt
comparison dcrypt/crypto/hashes/MD5.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 | cd376996cdb3 |
comparison
equal
deleted
inserted
replaced
5:cff9960a019c | 6:5cb17e09d685 |
---|---|
8 | 8 |
9 module dcrypt.crypto.hashes.MD5; | 9 module dcrypt.crypto.hashes.MD5; |
10 | 10 |
11 public import dcrypt.crypto.Hash; | 11 public import dcrypt.crypto.Hash; |
12 | 12 |
13 /** Implementation of Ron Rivest's MD5. */ | 13 /** |
14 * Implementation of Ron Rivest's MD5. | |
15 * | |
16 * Conforms: RFC 1321 | |
17 * References: http://www.faqs.org/rfcs/rfc1321.html | |
18 * Bugs: MD5 is not cryptographically secure. | |
19 */ | |
14 class MD5 : Hash { | 20 class MD5 : Hash { |
15 private uint h0, h1, h2, h3; | 21 private uint h0, h1, h2, h3; |
16 | 22 |
17 // Shift amounts | 23 // Shift amounts |
18 private enum { | 24 private enum { |