openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CRYPT_EAL_CipherNewCtx()

CRYPT_EAL_CipherCtx * CRYPT_EAL_CipherNewCtx ( CRYPT_CIPHER_AlgId  id)

Generate symmetric encryption and decryption handles.

注意
If the function is called by an external user and the error stack is concerned, it is recommended that BSL_ERR_ClearError() be called before this function is called.
参数
id[IN] Symmetric encryption/decryption algorithm ID.
返回值
Successcipher ctx. Fails: NULL.