libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_verify / 16 / ref / verify_16.c
blobf7e33f1cdb2004ccc3e5c5dcf575d277e7712562
1 #include "api.h"
3 int crypto_verify_16(const unsigned char *x,const unsigned char *y)
5 unsigned int differentbits = 0;
6 #define F(i) differentbits |= x[i] ^ y[i];
7 F(0)
8 F(1)
9 F(2)
10 F(3)
11 F(4)
12 F(5)
13 F(6)
14 F(7)
15 F(8)
16 F(9)
17 F(10)
18 F(11)
19 F(12)
20 F(13)
21 F(14)
22 F(15)
23 return (1 & ((differentbits - 1) >> 8)) - 1;