# HG changeset patch # User Thomas Dixon # Date 1242337571 14400 # Node ID 6b2c35b841862c96a93becb8b0b6ee52683dd0ff # Parent b1d9be1b3a34899146632b5482b18382b0a80ce9 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. diff -r b1d9be1b3a34 -r 6b2c35b84186 dcrypt/crypto/BlockCipherPadding.d --- a/dcrypt/crypto/BlockCipherPadding.d Thu May 14 05:31:58 2009 -0400 +++ b/dcrypt/crypto/BlockCipherPadding.d Thu May 14 17:46:11 2009 -0400 @@ -38,13 +38,5 @@ * pad length cannot be discerned. */ uint unpad(void[] input_); - - /** Play nice with D2's idea of const. */ - version (D_Version2) - { - uint unpad(string input_) - { - return unpad(cast(ubyte[])input_); - } - } + } diff -r b1d9be1b3a34 -r 6b2c35b84186 dcrypt/crypto/padding/PKCS7.d --- a/dcrypt/crypto/padding/PKCS7.d Thu May 14 05:31:58 2009 -0400 +++ b/dcrypt/crypto/padding/PKCS7.d Thu May 14 17:46:11 2009 -0400 @@ -25,7 +25,7 @@ { ubyte[] output = new ubyte[len]; - output[0..output.length] = cast(byte)len; + output[0..output.length] = cast(ubyte)len; return output; }