I sit corrected - I've always thought of it as PKCS#5 padding as that's where it was originally described (for 8byte block ciphers). I'd not seen the generalisation for cipher block size 1-255 referred to as PKCS#7 padding before.
I grovel... -----Original Message----- From: Wei Dai [mailto:[EMAIL PROTECTED] Sent: 05 June 2003 22:30 To: [EMAIL PROTECTED] Subject: Re: PKCS_PADDING No, it is PKCS #7 padding. Look at http://www.users.zetnet.co.uk/hopwood/crypto/scan/cs.html#pad_PKCSPadding. On Thu, Jun 05, 2003 at 02:59:02PM +0100, David C. Partridge wrote: > This is a total nitpick, but I still think it should be fixed, as it is a > bit misleading. > > The code comments in filters.cpp and the exception text at line 601 of > filters.cpp and the output of the DES validation suite indicate the PKCS > padding used is PKCS#7 padding - it isn't, it is PKCS#5 padding. > > Regards, > David C. Partridge > Security and MQ Products Manager > Primeur Group > Tel: +44 (0)1926 511058 > Mobile: +44 (0)7713 880197 >