Mercurial > projects > dcrypt
diff dcrypt/crypto/Crypto.d @ 11:02970e63257d
Fix stupid error with using uint instead of int in create*
author | Thomas Dixon <reikon@reikon.us> |
---|---|
date | Wed, 20 Aug 2008 23:33:02 -0400 |
parents | cd376996cdb3 |
children | 8c7f8fecdd75 |
line wrap: on
line diff
--- a/dcrypt/crypto/Crypto.d Wed Aug 20 20:08:07 2008 -0400 +++ b/dcrypt/crypto/Crypto.d Wed Aug 20 23:33:02 2008 -0400 @@ -17,11 +17,14 @@ import dcrypt.crypto.hashes.SHA384; import dcrypt.crypto.hashes.SHA512; +// Message authentication codes +public import dcrypt.crypto.MAC; +public import dcrypt.crypto.macs.HMAC; + // Params public import dcrypt.crypto.params.SymmetricKey; public import dcrypt.crypto.params.ParametersWithIV; - // Ciphers public import dcrypt.crypto.Cipher; public import dcrypt.crypto.BlockCipher; @@ -31,8 +34,8 @@ import dcrypt.crypto.ciphers.RC6; import dcrypt.crypto.ciphers.TEA; import dcrypt.crypto.ciphers.XTEA; +import dcrypt.crypto.ciphers.AES; import dcrypt.crypto.ciphers.RC4; -import dcrypt.crypto.ciphers.AES; // Block modes import dcrypt.crypto.modes.CBC; @@ -100,7 +103,7 @@ } } - static Cipher createCipher(uint cipher, uint mode=Modes.ECB, uint padding=Padding.None) { + static Cipher createCipher(uint cipher, int mode=Modes.ECB, int padding=Padding.None) { BlockCipher c = null, m = null; BlockCipherPadding p = null;