PKCS7Pad.addPadding

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

struct PKCS7Pad
void
addPadding
pure nothrow @nogc
(
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 the block size.

Meta