diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2021-12-09 19:52:41 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2021-12-09 19:52:41 +0000 |
| commit | 6e17a2e00d62fd3041e0bb511fe925079ad1c0d7 (patch) | |
| tree | 56cbe69a74e6b10de1c360f8e4bee12bb5947e17 /sys/crypto/aesni | |
| parent | ec498562b71a5e2baee3556eed7e22947f7abc5d (diff) | |
Diffstat (limited to 'sys/crypto/aesni')
| -rw-r--r-- | sys/crypto/aesni/aesni.c | 3 |
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: |
