qcrypto_cipher_op_encrypt_decrypt

Updated: April 19, 2023

Encrypt or decrypt data

Synopsis:

#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);

Arguments:

sctx
The algorithm state context object.
in
The input data.
insize
The size of the input data.
out
The output data.
outsize
The size of the output data and encrypted or decrypted data combined.

Library:

libqcrypto

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.