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