CipherPad(Byte, CipherAlgorithm, Padding) Method |
Pad byte array to correct length for ECB and CBC encryption.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static byte[] Pad(
byte[] input,
CipherAlgorithm cipherAlg,
Padding pad = Padding.Pkcs5
)
Public Shared Function Pad (
input As Byte(),
cipherAlg As CipherAlgorithm,
Optional pad As Padding = Padding.Pkcs5
) As Byte()
Parameters
- input Byte
- Data to be padded
- cipherAlg CipherAlgorithm
- Block cipher being used
- pad Padding (Optional)
- Padding method to use (default is PKCS#5/#7)
Return Value
BytePadded data in byte array
See Also