comparison dcrypt/crypto/padding/PKCS7.d @ 28:ad687db713a4

Further reworked the code for hash padding. Replaced all instances of 'char[]' with 'string' and removed a few 'const' modifiers as per Glenn Haecker's patch for D2 compatibility. Updated CONTRIBUTORS file.
author Thomas Dixon <reikon@reikon.us>
date Sun, 10 May 2009 22:38:48 -0400
parents 8b5eaf3c2979
children 6b2c35b84186
comparison
equal deleted inserted replaced
27:8b5eaf3c2979 28:ad687db713a4
14 * This class implements the padding scheme described in PKCS7 14 * This class implements the padding scheme described in PKCS7
15 * from RSA Security. Ex. [... 0x03, 0x03, 0x03] 15 * from RSA Security. Ex. [... 0x03, 0x03, 0x03]
16 */ 16 */
17 class PKCS7 : BlockCipherPadding 17 class PKCS7 : BlockCipherPadding
18 { 18 {
19 char[] name() 19 string name()
20 { 20 {
21 return "PKCS7"; 21 return "PKCS7";
22 } 22 }
23 23
24 ubyte[] pad(uint len) 24 ubyte[] pad(uint len)