openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CRYPT_EAL_CipherReinit()

int32_t CRYPT_EAL_CipherReinit ( CRYPT_EAL_CipherCtx ctx,
uint8_t *  iv,
uint32_t  ivLen 
)

Re-initialize the handle, retain the key, reset the IV, and clear the cache and sensitive data. Except the ECB mode, other modes iv cannot be null. The setting of iv must be based on the corresponding algorithm ID. For details, see the mapping in CRYPT_EAL_CipherInit.

参数
ctx[IN] Symmetric encryption/decryption handle
iv[IN] Vector
ivlen[IN] Vector length