Fixes #111 (MSVC warnings)
All indices in Monocypher are size_t. We might as well be consistent.
s[31] |= 64;
}
-static int scalar_bit(const u8 s[32], int i) { return (s[i>>3] >> (i&7)) & 1; }
+static int scalar_bit(const u8 s[32], size_t i) {return (s[i>>3] >> (i&7)) & 1;}
int crypto_x25519(u8 raw_shared_secret[32],
const u8 your_secret_key [32],
if (adds[i] > 16) {
// go back to [-15, 15], propagate carry.
adds[i] -= 32;
- int j = i + 5;
+ size_t j = i + 5;
while (adds[j] != 0) {
adds[j] = 0;
j++;