buddy.core.padding

Block padding algorithms.

count

(count input)(count input alg)

Get the padding size found on given byte array.

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.

padding-engine

(padding-engine alg)

Create a padding enginde for given algorithm name.

unpad

(unpad input)(unpad input alg)

Remove padding from given byte array and fill the unpadded bytes with 0