buddy.core.padding
Block padding algorithms.
pad
(pad input offset)
(pad input offset alg)
Add padding using one of supported padding algorithms. This is a side effect free version of pad! function.
pad!
(pad! input offset)
(pad! input offset alg)
Add padding using one of supported padding algorithms.
padded?
(padded? input)
(padded? input alg)
Check if given byte array has padding using specified padding algorithm. If no one is specified, :pkcs7 will be used.
unpad
(unpad input)
(unpad input alg)
Remove padding from given byte array and fill the unpadded bytes with 0