mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
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
This commit is contained in:
parent
7b9f20ea8d
commit
fec1081e54
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181965
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user