CryptoSys API Library Manual
Cipher.InitDecrypt Method (String, String, CipherAlgorithm, Mode)
Initializes with hex-encoded key, iv, algorithm and mode ready to start decrypting with repeated update operations.
Syntax
[C#]
public bool InitDecrypt(
string keyHex,
string ivHex,
CipherAlgorithm cipherAlg,
Mode mode
)
[VB.NET]
Public Function InitDecrypt ( _
keyHex As String, _
ivHex As String, _
cipherAlg As CipherAlgorithm, _
mode As Mode _
) As Boolean
Parameters
- keyHex
- Hex-encoded key of exact length for block cipher algorithm.
- ivHex
- Hex-encoded Initialization Vector (IV) of exactly the block size or "" for ECB mode.
- cipherAlg
- Type: CipherAlgorithm
Cipher algorithm
- mode
- Type: Mode
Cipher mode
Return Value
True if successful, False if failed.
See Also
VB6/C equivalent: CIPHER_InitHex
[Contents] [Index]