樽中酒不空
分类: 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 |