Volatilify the accumulator, at least for consistency with sodium_is_zero()
This commit is contained in:
parent
cd51ff29e9
commit
2a2ed3df3a
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user