Commit d61effd3 authored by John Baldwin's avatar John Baldwin
Browse files

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:
parent c7721958
......@@ -112,7 +112,7 @@ g_eli_crypto_cipher(u_int algo, int enc, u_char *data, size_t datasize,
const EVP_CIPHER *type;
u_char iv[keysize];
u_char iv[G_ELI_IVKEYLEN];
int outsize;
assert(algo != CRYPTO_AES_XTS);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment