PaddedBufferedBlockCipher.processByte

takes one byte and stores it in a buffer. If the buffer is already full it gets encrypted and written to output

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

Parameters

b
Type: ubyte

the byte to encrypt

output
Type: ubyte[]

the output buffer

Return Value

Type: uint

the number of bytes written to output. Will be 0 or BLOCKSIZE of underlying cipher.

Meta