Pad byte array to correct length for ECB and CBC encryption (PKCS#5/#7 padding).
public static byte[] Pad( byte[] input, CipherAlgorithm cipherAlg )
Public Shared Function Pad ( _ input As Byte(), _ cipherAlg As CipherAlgorithm _ ) As Byte()
VB6/C equivalent: PAD_BytesBlock