Mercurial > projects > dcrypt
comparison dcrypt/crypto/ciphers/RC6.d @ 26:176c933827a8
Implemented MD4. Refactored MD5. Replaced all instances of 'version (UnitTest)' with 'debug (UnitTest)'.
author | Thomas Dixon <reikon@reikon.us> |
---|---|
date | Sun, 01 Mar 2009 13:06:48 -0500 |
parents | 4589f8c5eb3c |
children | 8b5eaf3c2979 |
comparison
equal
deleted
inserted
replaced
25:528676d20398 | 26:176c933827a8 |
---|---|
148 j = (j + 1) % c; | 148 j = (j + 1) % c; |
149 } | 149 } |
150 } | 150 } |
151 | 151 |
152 /** Some RC6 test vectors from the spec. */ | 152 /** Some RC6 test vectors from the spec. */ |
153 version (UnitTest) { | 153 debug (UnitTest) { |
154 unittest { | 154 unittest { |
155 static const char[][] test_keys = [ | 155 static const char[][] test_keys = [ |
156 "00000000000000000000000000000000", | 156 "00000000000000000000000000000000", |
157 "0123456789abcdef0112233445566778", | 157 "0123456789abcdef0112233445566778", |
158 "00000000000000000000000000000000"~ | 158 "00000000000000000000000000000000"~ |