openHiTLS API openHiTLS 0.1.0-Alpha1
|
◆ CRYPT_EAL_CipherInit()
Initialize the symmetric encryption/decryption handle. The key cannot be null. Except the ECB mode, other modes iv cannot be null. The length of iv must be the same as the block length (this requirement is not required in ECB mode). The block length can be obtained through CRYPT_CTRL_GET_BLOCKSIZE of CRYPT_EAL_CipherCtrl. CRYPT_EAL_CipherInit can be called repeatedly at any stage, resets the key and iv, and clears the cached data.
|