提交 6c13488c 编写于 作者: R Richard Levitte

Make sure the rand_byte buffer in padlock engine is cleansed.

Submitted by Michael McConville <mmcco@mykolab.com>
Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 4b8736a2
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册