diff --git a/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c b/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c index 4b0797e9..3bf6c82e 100644 --- a/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c +++ b/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c @@ -2623,7 +2623,6 @@ ge25519_from_hash(unsigned char s[32], const unsigned char h[64]) fe25519_frombytes(fe_f, fl); fe25519_frombytes(fe_g, gl); fe_f[0] += (h[0 + 31] >> 7) * 19; - fe_g[0] += (h[32 + 31] >> 7) * 19; for (i = 0; i < sizeof (fe25519) / sizeof fe_f[0]; i++) { fe_f[i] += 38 * fe_g[i]; } diff --git a/src/libsodium/randombytes/internal/randombytes_internal_random.c b/src/libsodium/randombytes/internal/randombytes_internal_random.c index 7098f28b..c7c23291 100644 --- a/src/libsodium/randombytes/internal/randombytes_internal_random.c +++ b/src/libsodium/randombytes/internal/randombytes_internal_random.c @@ -152,7 +152,7 @@ sodium_hrtime(void) static uint64_t sodium_hrtime(void) { - struct timeval tv; + struct timeval tv; if (gettimeofday(&tv, NULL) != 0) { sodium_misuse(); /* LCOV_EXCL_LINE */