Mercurial > projects > dcrypt
comparison dcrypt/crypto/BlockCipherPadding.d @ 35:6b2c35b84186 0.1
Removed a D2 version statement from the BlockCipherPadding class. Minor consistency correction to the PKCS7 class. Glenn Haecker reports dcrypt now compiles successfully with D2.
author | Thomas Dixon <reikon@reikon.us> |
---|---|
date | Thu, 14 May 2009 17:46:11 -0400 |
parents | 2b4bccdc8387 |
children |
comparison
equal
deleted
inserted
replaced
34:b1d9be1b3a34 | 35:6b2c35b84186 |
---|---|
36 * | 36 * |
37 * Throws: dcrypt.crypto.errors.InvalidPaddingError if | 37 * Throws: dcrypt.crypto.errors.InvalidPaddingError if |
38 * pad length cannot be discerned. | 38 * pad length cannot be discerned. |
39 */ | 39 */ |
40 uint unpad(void[] input_); | 40 uint unpad(void[] input_); |
41 | 41 |
42 /** Play nice with D2's idea of const. */ | |
43 version (D_Version2) | |
44 { | |
45 uint unpad(string input_) | |
46 { | |
47 return unpad(cast(ubyte[])input_); | |
48 } | |
49 } | |
50 } | 42 } |