Definition
Public-Key Cryptography Standards Number 7
Public-Key Cryptography Standards Number 7 (PKCS#7) is a standard padding algorithm for block ciphers.
Operation
- If bytes are missing in the last block, add bytes with value
- If the last block is full, add a new block where all bytes match the block size
Block size 10
HELLO!becomesHELLO!4444
FULLBLOCKbecomesFULLBLOCKfollowed by a full block10101010101010101010