From 55245871652c34dba2ba70f34edafc983ecdd479 Mon Sep 17 00:00:00 2001 From: raj Date: Thu, 21 Aug 2008 16:49:57 +0000 Subject: Increase cryptotest tool initialization vector (IV) size. This fixes potential out-of-bound accesses when testing ciphers with block size greater than 8 bytes (e.g. AES). Submitted by: Bartlomiej Sieka tur ! semihalf dot com Discussed with: pjd, sam --- tools/tools/crypto/cryptotest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/tools/crypto/cryptotest.c b/tools/tools/crypto/cryptotest.c index 13c52dd..5f5e450 100644 --- a/tools/tools/crypto/cryptotest.c +++ b/tools/tools/crypto/cryptotest.c @@ -250,7 +250,7 @@ runtest(struct alg *alg, int count, int size, u_long cmd, struct timeval *tv) char *cleartext, *ciphertext, *originaltext; struct session2_op sop; struct crypt_op cop; - char iv[8]; + char iv[EALG_MAX_BLOCK_LEN]; bzero(&sop, sizeof(sop)); if (!alg->ishash) { -- cgit v1.1