CIOCCRYPT command
#include <dev/crypto/cryptodev.h>
struct crypt_op { uint64_t ses; uint16_t op; uint16_t flags; uint32_t len; uint8_t* src; uint8_t* dst; uint8_t* mac; uint8_t* iv; } cryptodev_crypt_op_t;
The session identifier. See cryptodev_session_op_t.
COP_ENCRYPT or COP_DECRYPT. See Cryptography device operations.
The input or output data length.
The input data buffer.
The output data buffer.
The hash or MAC output buffer.
The initialization vector for the encryption or decryption operation.