Updated: October 28, 2024 |
Initialize a cipher
#include <qcrypto/qcrypto.h>
int qcrypto_cipher_init(qcrypto_ctx_t *ctx, qcrypto_key_t *key, const qcrypto_cipher_args_t *cargs)
This function initializes a cipher. Whenever you call it, make sure that you finalize any operation that it successfully initializes with qcrypto_cipher_final() (following the appropriate encryption and decryption operations).
See also qcrypto_cipher_args_t.
QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.