libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_verify / 32 / ref / verify_32.c
blob31c36971f645a3363f767a37a4e5f7092c2b57b8
1 #include "api.h"
3 int crypto_verify_32(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 F(16)
24 F(17)
25 F(18)
26 F(19)
27 F(20)
28 F(21)
29 F(22)
30 F(23)
31 F(24)
32 F(25)
33 F(26)
34 F(27)
35 F(28)
36 F(29)
37 F(30)
38 F(31)
39 return (1 & ((differentbits - 1) >> 8)) - 1;