Volatilify the accumulator, at least for consistency with sodium_is_zero()

This commit is contained in:
Frank Denis 2017-07-24 22:20:51 +02:00
parent cd51ff29e9
commit 2a2ed3df3a

View File

@ -20,8 +20,8 @@ int
crypto_scalarmult_curve25519(unsigned char *q, const unsigned char *n,
const unsigned char *p)
{
size_t i;
unsigned char d = 0;
size_t i;
volatile unsigned char d = 0;
if (implementation->mult(q, n, p) != 0) {
return -1; /* LCOV_EXCL_LINE */