aboutsummaryrefslogtreecommitdiff
path: root/sys/crypto/aesni
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-12-09 19:52:41 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2021-12-09 19:52:41 +0000
commit6e17a2e00d62fd3041e0bb511fe925079ad1c0d7 (patch)
tree56cbe69a74e6b10de1c360f8e4bee12bb5947e17 /sys/crypto/aesni
parentec498562b71a5e2baee3556eed7e22947f7abc5d (diff)
Diffstat (limited to 'sys/crypto/aesni')
-rw-r--r--sys/crypto/aesni/aesni.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/crypto/aesni/aesni.c b/sys/crypto/aesni/aesni.c
index cd31287b08f0..a69488971cac 100644
--- a/sys/crypto/aesni/aesni.c
+++ b/sys/crypto/aesni/aesni.c
@@ -305,8 +305,7 @@ aesni_probesession(device_t dev, const struct crypto_session_params *csp)
if (csp->csp_auth_mlen != 0 &&
csp->csp_auth_mlen != GMAC_DIGEST_LEN)
return (EINVAL);
- if (csp->csp_ivlen != AES_GCM_IV_LEN ||
- !sc->has_aes)
+ if (!sc->has_aes)
return (EINVAL);
break;
case CRYPTO_AES_CCM_16: