CIOCAUTHCRYPT command
#include <dev/crypto/cryptodev.h>
typedef struct crypt_auth_op { uint64_t ses; uint16_t op; uint16_t flags; uint32_t len; uint32_t auth_len; uint8_t* auth_src; uint8_t* src; uint8_t* dst; uint8_t* tag; uint32_t tag_len; uint8_t* iv; uint32_t iv_len; } cryptodev_crypt_auth_op_t;
The session identifier. See cryptodev_session_op_t.
COP_ENCRYPT or COP_DECRYPT. See Cryptography device operations.
Reserved for future use.
The input or output data length.
The length of the authenticated data.
Additional authenticated data.
The input data buffer.
The output data buffer.
The tag input or output buffer.
The tag length.
The initialization vector (IV).
The IV length.
This command handles AEAD ciphers such as AES-GCM.