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