comparison dcrypt/misc/Util.d @ 10:cd376996cdb3

Renamed SymmetricCipher back to Cipher (we don't support any other kind atm, I'll deal with it when we do.). Added BlockCipherWrapper for the encryption of arbitrary streams with or without padding. Removed hashByName, and replaced it with createHash. Re-did the high-level API, and filled out Crypto. Added cipher creation via createCipher. Added dsk to the CONTRIBUTORS file for helping with the design of the high-level API.
author Thomas Dixon <reikon@reikon.us>
date Wed, 20 Aug 2008 20:08:07 -0400
parents 0e08791a1418
children
comparison
equal deleted inserted replaced
9:29b910949588 10:cd376996cdb3
4 * Copyright: Copyright (C) dcrypt contributors 2008. All rights reserved. 4 * Copyright: Copyright (C) dcrypt contributors 2008. All rights reserved.
5 * License: MIT 5 * License: MIT
6 * Authors: Thomas Dixon 6 * Authors: Thomas Dixon
7 */ 7 */
8 8
9 // TODO: WRITE DOCS, IMPLEMENT TO/FROM HEX FUNCTIONS, SIMPLIFY UNITTESTS 9 // TODO: WRITE DOCS
10 module dcrypt.misc.Util; 10 module dcrypt.misc.Util;
11 11
12 /** Utility functions */ 12 /** Utility functions */
13 struct Util { 13 struct Util {
14 static const char[] hexits = "0123456789abcdef"; 14 static const char[] hexits = "0123456789abcdef";