mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Make sure the rand_byte buffer in padlock engine is cleansed.
Submitted by Michael McConville <mmcco@mykolab.com> Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
4b8736a22e
commit
6c13488c4e
@ -776,7 +776,7 @@ static int padlock_rand_bytes(unsigned char *output, int count)
|
||||
*output++ = (unsigned char)buf;
|
||||
count--;
|
||||
}
|
||||
*(volatile unsigned int *)&buf = 0;
|
||||
OPENSSL_cleanse(&buf, sizeof(buf));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user