January 22, 2002
Practical Aspects of Modern Cryptography
36
PKCS Padding
nRemoving a PKCS pad is easy:
nLook at the last byte of the last block of plaintext – this is the pad value
nRemove that many bytes of padding
 31  D9   7B  D7  04   04   04  04
Value: 04
Remove
last 4 bytes