These functions add and remove padding required for ECB and CBC block cipher encryption modes. The outputs from the padding functions are always longer than the input, and the outputs from the 'Unpad' functions are always shorter. The 'Unpad' functions return a "decryption error" if the padding is not valid.
PAD_BytesBlock
PAD_UnpadBytes
PAD_HexBlock
PAD_UnpadHex