PaddedBufferedBlockCipher.processBytes

input length not limited to multiples of block size. ensure that length of output buffer is sufficiently large (see below).

struct PaddedBufferedBlockCipher(C, Padding, bool permitPartialBlock = false)
@nogc
uint
processBytes
nothrow
(
in ubyte[] i
,
ubyte[] output
)
in { assert (bufOff < blockSize, "bufOff can't be larger than buf.length"); assert (output.length >= bufOff + i.length, "output buffer too small"); }
if (
isBlockCipher!C &&
)

Parameters

i
Type: ubyte[]

the input data

output
Type: ubyte[]

the output buffer. this buffer must be able to hold the same amount of data as given by the input + padding bytes. output.length >= i.length rounded up to the next multiple of block size

Meta