January 22, 2002
Practical Aspects of Modern Cryptography
32
Padding Modes
nWhat do we do if the length of the plaintext is not an even multiple of the cipher’s block size?
nA: Drop the extra data on the floor
n(You really didn’t want it encrypted anyway)
nB: Throw an exception/return an error
n“User error”
nC: Pad the last block of plaintext so it’s a full block, then encrypt it normally