diff options
author | Rafal Jaworowski <raj@FreeBSD.org> | 2008-08-21 16:49:57 +0000 |
---|---|---|
committer | Rafal Jaworowski <raj@FreeBSD.org> | 2008-08-21 16:49:57 +0000 |
commit | fec1081e54cf82956e7454f5a9b6a9ed3f0776cf (patch) | |
tree | 1e972851fedf57be19f8e968faa602772cf2349c /tools | |
parent | 7b9f20ea8dedbe1e55576b2958502e9a08e00a0f (diff) | |
download | src-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.c | 2 |
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) { |