ddn.api.crypto.padding

Block cipher padding API.

Defines the interface for padding schemes used by block ciphers. Concrete implementations live in ddn.crypto.cipher.padding.

iface Padding

Types 1

interfacePadding

Interface for block cipher padding schemes.

Padding schemes ensure that plaintext data is a multiple of the cipher's block size by appending (and later removing) padding bytes.

Methods
ubyte[] pad(const(ubyte)[] input, size_t blockSize)Adds padding to the input to make it a multiple of blockSize.
ubyte[] unpad(const(ubyte)[] input, size_t blockSize)Removes padding from the input.