comparison dcrypt/crypto/Cipher.d @ 32:2b4bccdc8387

Added version() statements to play nice with D2's current feelings about const. Changed a few methods (addEntropy and read in the base PRNG class, and the constructor for ParametersWithIV) to accept void[] in place of ubyte[].
author Thomas Dixon <reikon@reikon.us>
date Tue, 12 May 2009 22:09:33 -0400
parents ad687db713a4
children
comparison
equal deleted inserted replaced
31:f429c5e9dd69 32:2b4bccdc8387
43 * 43 *
44 * Returns: The amount of encrypted data processed. 44 * Returns: The amount of encrypted data processed.
45 */ 45 */
46 uint update(void[] input_, void[] output_); 46 uint update(void[] input_, void[] output_);
47 47
48 /** Play nice with D2's idea of const. */
49 version (D_Version2)
50 {
51 uint update(string input_, void[] output_)
52 {
53 return update(cast(ubyte[])input_, output_);
54 }
55 }
56
48 /** Returns: The name of the algorithm of this cipher. */ 57 /** Returns: The name of the algorithm of this cipher. */
49 string name(); 58 string name();
50 59
51 /** Returns: Whether or not the cipher has been initialized. */ 60 /** Returns: Whether or not the cipher has been initialized. */
52 bool initialized() 61 bool initialized()