ECB/CBC Padding Methods
Block Cipher Mode Padding Method This class is pretty limited, it cannot deal well with randomized padding methods, or any padding method that wants to add more than one block. For instance, it should be possible to define cipher text stealing mode as simply a padding mode for CBC, which happens to consume the last two block (and requires use of the block cipher).
const(ubyte)* block | the last block |
size_t size | the of the block |
size_t block_size | of the cipher |
PKCS#7 Padding
ANSI X9.23 Padding
One And Zeros Padding
Null Padding