cryptodev_crypt_auth_op_t
QNX SDP8.0QNX OS System Security GuideAPIConfiguration
CIOCAUTHCRYPT command
Synopsis:
#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;
Data:
- uint64_t ses
The session identifier. See
cryptodev_session_op_t
.- uint16_t op
COP_ENCRYPT
orCOP_DECRYPT
. See Cryptography device operations.- uint16_t flags
Reserved for future use.
- uint32_t len
The input or output data length.
- uint32_t auth_len
The length of the authenticated data.
- uint8_t* auth_src
Additional authenticated data.
- uint8_t* src
The input data buffer.
- uint8_t* dst
The output data buffer.
- uint8_t* tag
The tag input or output buffer.
- uint32_t tag_len
The tag length.
- uint8_t* iv
The initialization vector (IV).
- uint32_t iv_len
The IV length.
Library:
devcrDescription:
This command handles AEAD ciphers such as AES-GCM.
Page updated: