aboutsummaryrefslogtreecommitdiff
path: root/sys/opencrypto/cryptodev.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-06-22 23:20:43 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2020-06-22 23:20:43 +0000
commit9b774dc0c586235e3f742dd487fd79e9fa90eedb (patch)
tree057fd4d2bdb71d0c4fd62ff0f111b0a7c58e7a36 /sys/opencrypto/cryptodev.h
parente16b2077398d8d1ad1dd5f29162c8464b950f036 (diff)
Notes
Diffstat (limited to 'sys/opencrypto/cryptodev.h')
-rw-r--r--sys/opencrypto/cryptodev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/opencrypto/cryptodev.h b/sys/opencrypto/cryptodev.h
index 8a28da44a332..0a61c3e69b27 100644
--- a/sys/opencrypto/cryptodev.h
+++ b/sys/opencrypto/cryptodev.h
@@ -384,6 +384,7 @@ struct crypto_session_params {
int csp_flags;
#define CSP_F_SEPARATE_OUTPUT 0x0001 /* Requests can use separate output */
+#define CSP_F_SEPARATE_AAD 0x0002 /* Requests can use separate AAD */
int csp_ivlen; /* IV length in bytes. */
@@ -479,6 +480,7 @@ struct cryptop {
struct crypto_buffer crp_buf;
struct crypto_buffer crp_obuf;
+ void *crp_aad; /* AAD buffer. */
int crp_aad_start; /* Location of AAD. */
int crp_aad_length; /* 0 => no AAD. */
int crp_iv_start; /* Location of IV. IV length is from