aboutsummaryrefslogtreecommitdiff
path: root/sys/geom
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-01-14 01:22:06 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-01-14 01:22:06 +0000
commitd61effd38b518edd58c29144805cfff235c0d704 (patch)
tree1fc5fcfa9b4cc811c96d55fa27880e8a578fee98 /sys/geom
parentc7721958ffa1aa81064b74b884e81efbe11d7fe4 (diff)
downloadsrc-d61effd38b518edd58c29144805cfff235c0d704.tar.gz
src-d61effd38b518edd58c29144805cfff235c0d704.zip
Use G_ELI_IVKEYLEN as the size of IV in the user test code.
IVs are not the size of keys as a general case. Most often they are the size of a single block. Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33885
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/eli/g_eli_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/eli/g_eli_crypto.c b/sys/geom/eli/g_eli_crypto.c
index ca8170db7e4d..441bedb030b8 100644
--- a/sys/geom/eli/g_eli_crypto.c
+++ b/sys/geom/eli/g_eli_crypto.c
@@ -112,7 +112,7 @@ g_eli_crypto_cipher(u_int algo, int enc, u_char *data, size_t datasize,
{
EVP_CIPHER_CTX *ctx;
const EVP_CIPHER *type;
- u_char iv[keysize];
+ u_char iv[G_ELI_IVKEYLEN];
int outsize;
assert(algo != CRYPTO_AES_XTS);