Updated: October 28, 2024 |
Encrypt or decrypt data
#include <qcrypto/qcrypto_plugin.h>
typedef int(* qcrypto_cipher_op_encrypt_decrypt)(qcrypto_state_ctx_t *sctx, const uint8_t *in, size_t insize, uint8_t *out, size_t *outsize);
QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.