aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRafal Jaworowski <raj@FreeBSD.org>2008-08-21 16:49:57 +0000
committerRafal Jaworowski <raj@FreeBSD.org>2008-08-21 16:49:57 +0000
commitfec1081e54cf82956e7454f5a9b6a9ed3f0776cf (patch)
tree1e972851fedf57be19f8e968faa602772cf2349c /tools
parent7b9f20ea8dedbe1e55576b2958502e9a08e00a0f (diff)
downloadsrc-fec1081e54cf82956e7454f5a9b6a9ed3f0776cf.tar.gz
src-fec1081e54cf82956e7454f5a9b6a9ed3f0776cf.zip
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
Notes
Notes: svn path=/head/; revision=181965
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/crypto/cryptotest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/crypto/cryptotest.c b/tools/tools/crypto/cryptotest.c
index 13c52dd5f86b..5f5e450e3256 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) {