padPKCS5

PKCS#5 padding.

Similar to PKCS#7 padding, except PKCS#5 padding is only defined for ciphers that use a block size of 8 bytes. Hence, the given buffer will be padded to a length of 8 bytes.

ubyte[]
padPKCS5
(
ref ubyte[] buffer
)

Parameters

buffer ubyte[]

A reference to the buffer to pad

Return Value

Type: ubyte[]

The padded buffer

Meta