aboutsummaryrefslogtreecommitdiff
path: root/sys/opencrypto
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2022-01-11 23:43:18 +0000
committerWarner Losh <imp@FreeBSD.org>2022-01-11 23:43:18 +0000
commit8bb9cd271eb4bed19ff8e332efaa127bfad2c42c (patch)
tree7d5022d2ba7117306822e39d4479d8d9ce478374 /sys/opencrypto
parent5022c68732e6afadf39bca3fe3e65ddc44410e84 (diff)
stand: Fix KASSERT use
Explicitly include sys/systm.h to pull in KASSERT. Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D33855
Diffstat (limited to 'sys/opencrypto')
-rw-r--r--sys/opencrypto/xform_aes_xts.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/opencrypto/xform_aes_xts.c b/sys/opencrypto/xform_aes_xts.c
index cc3f1127d1b8..eda17780db98 100644
--- a/sys/opencrypto/xform_aes_xts.c
+++ b/sys/opencrypto/xform_aes_xts.c
@@ -51,6 +51,7 @@
__FBSDID("$FreeBSD$");
#include <sys/types.h>
+#include <sys/systm.h>
#include <opencrypto/xform_enc.h>
static int aes_xts_setkey(void *, const uint8_t *, int);
@@ -87,10 +88,8 @@ aes_xts_reinit(void *key, const uint8_t *iv, size_t ivlen)
uint64_t blocknum;
u_int i;
-#ifndef _STANDALONE
KASSERT(ivlen == sizeof(blocknum),
("%s: invalid IV length", __func__));
-#endif
/*
* Prepare tweak as E_k2(IV). IV is specified as LE representation