Mercurial > projects > dcrypt
comparison dcrypt/crypto/padding/PKCS7.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 | ad687db713a4 |
children |
comparison
equal
deleted
inserted
replaced
34:b1d9be1b3a34 | 35:6b2c35b84186 |
---|---|
23 | 23 |
24 ubyte[] pad(uint len) | 24 ubyte[] pad(uint len) |
25 { | 25 { |
26 ubyte[] output = new ubyte[len]; | 26 ubyte[] output = new ubyte[len]; |
27 | 27 |
28 output[0..output.length] = cast(byte)len; | 28 output[0..output.length] = cast(ubyte)len; |
29 | 29 |
30 return output; | 30 return output; |
31 } | 31 } |
32 | 32 |
33 uint unpad(void[] input_) | 33 uint unpad(void[] input_) |