X923Pad.addPadding

pad with zeros or random bytes if SecureRandom is specified in constructor.

struct X923Pad
void
addPadding
nothrow
(
ubyte[] block
,
in uint len
)
in { assert (len < block.length, "len has to be smaller than block size"); assert (block.length < 256, "block to long. can't pad blocks with length > 255"); }

Parameters

len
Type: uint

the number of data bytes in this block. has to be smaller than block.length.

Meta