樽中酒不空
分类: C/C++
2016-11-03 17:39:47
The padding will be one of:
01 02 02 03 03 03 04 04 04 04 05 05 05 05 05 etc.
This padding method (as well as the previous two) is well-defined if and only if N is less than 256.
Example: In the following example the block size is 8 bytes and padding is required for 4 bytes
... | DD DD DD DD DD DD DD DD | DD DD DD DD 04 04 04 04 |