January 22, 2002
Practical Aspects of Modern Cryptography
35
PKCS Padding
nIdea: Pad the block with a value that depends on the amount of padding needed.
nThis lets you tell the pad apart from the plaintext
nIf you need n bytes of pad, pad with a value of n!
nExample: Need to pad the last four bytes?
Use a value of 04:
 31  D9   7B  D7  04   04   04  04