Add data padding and key derivation.