Initialize the CIPHER context with hex-encoded key, iv, algorithm and mode ready for repeated update operations. The key and IV data are passed as hexadecimal-encoded strings.
Public Declare Function CIPHER_InitHex Lib "diCryptoSys.dll" (ByVal fEncrypt As Integer, ByVal strAlgAndMode As String, ByVal strKeyHex As String, ByVal strIvHex As String, ByVal nOptions As Long) As Long
hContext = CIPHER_InitHex(fEncrypt, strAlgAndMode, strKeyHex, strIvHex, nOptions)
long __stdcall CIPHER_InitHex(int fEncrypt, const char *szAlgAndMode, const char *szKeyHex, const char *szIvHex, long nOptions);
"aes128/cbc"
(see Specifying the algorithm and mode for generic block cipher functions). ""
for ECB mode. Non-zero handle of the CIPHER context, or zero if an error occurs.
Cipher.InitEncrypt Method (String, String, CipherAlgorithm, Mode)
Cipher.InitDecrypt Method (String, String, CipherAlgorithm, Mode)
This function is the equivalent of CIPHER_Init
except it passes the key and IV parameters as hexadecimal-encoded strings.
See CIPHER_UpdateHex
.