CipherDecrypt(Byte, Byte, Byte, CipherAlgorithm, Mode) Method |
Decrypt data block in byte array.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static byte[] Decrypt(
byte[] input,
byte[] key,
byte[] iv,
CipherAlgorithm cipherAlg,
Mode mode
)
Public Shared Function Decrypt (
input As Byte(),
key As Byte(),
iv As Byte(),
cipherAlg As CipherAlgorithm,
mode As Mode
) As Byte()
Parameters
- input Byte
- Input data to be decrypted
- key Byte
- Key of exact length for block cipher algorithm
- iv Byte
- Initialization Vector (IV) of exactly the block size or null for ECB mode
- cipherAlg CipherAlgorithm
- Cipher algorithm
- mode Mode
- Cipher mode
Return Value
ByteDecrypted data in byte array or empty array on error
RemarksFor ECB and CBC modes, input data length must be an exact multiple of the block length.
See Also