Padding.pad
ubyte[] pad(const(ubyte)[] input, size_t blockSize)Adds padding to the input to make it a multiple of blockSize.
Parameters
input | The data to pad. |
blockSize | The block size in bytes (must be > 0). |
Returns
A new buffer containing input + padding.