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.

Attention
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.
Parameters
id[IN] Symmetric encryption/decryption algorithm ID.
Return values
Successcipher ctx. Fails: NULL.