comparison dcrypt/crypto/Hash.d @ 14:5ce3012f1def

Removed some redundancy in code. Added NotSupportedError, a base PRNG class and a class which creates a PRNG from a hash function. Changed the MAC class' finalization methods to digest and hexDigest instead of finish and hexFinish respectively. Also added a base Checksum class, crc32 and adler32 in dcrypt.misc as per request.
author Thomas Dixon <reikon@reikon.us>
date Tue, 18 Nov 2008 18:03:40 -0500
parents 8c7f8fecdd75
children 4589f8c5eb3c
comparison
equal deleted inserted replaced
13:7ea528b61802 14:5ce3012f1def
98 update(length); 98 update(length);
99 } 99 }
100 100
101 /** 101 /**
102 * Process all data, pad and finalize. This method will 102 * Process all data, pad and finalize. This method will
103 * reset the digest to its original state ofr subsequent use. 103 * reset the digest to its original state for subsequent use.
104 * 104 *
105 * Returns: Binary representation of the hash in bytes. 105 * Returns: Binary representation of the hash in bytes.
106 */ 106 */
107 abstract ubyte[] digest(); 107 abstract ubyte[] digest();
108 108