diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-13 10:09:38 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-13 10:09:38 -0400 |
commit | d4fe483efd3e0062f12430efe9deb66d43d914d7 (patch) | |
tree | e6aa9ac716ae82cdb15c6e6cb5d9d1d9d29f053b /nacl/crypto_verify/16 | |
parent | 835ef0320d47372eac14bef31c979b8217d04498 (diff) |
NaCl moved to other repo.
Diffstat (limited to 'nacl/crypto_verify/16')
-rw-r--r-- | nacl/crypto_verify/16/checksum | 1 | ||||
-rw-r--r-- | nacl/crypto_verify/16/ref/api.h | 1 | ||||
-rw-r--r-- | nacl/crypto_verify/16/ref/verify.c | 24 | ||||
-rw-r--r-- | nacl/crypto_verify/16/used | 0 |
4 files changed, 0 insertions, 26 deletions
diff --git a/nacl/crypto_verify/16/checksum b/nacl/crypto_verify/16/checksum deleted file mode 100644 index 573541ac..00000000 --- a/nacl/crypto_verify/16/checksum +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | 0 | ||
diff --git a/nacl/crypto_verify/16/ref/api.h b/nacl/crypto_verify/16/ref/api.h deleted file mode 100644 index 32be2f97..00000000 --- a/nacl/crypto_verify/16/ref/api.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | #define CRYPTO_BYTES 16 | ||
diff --git a/nacl/crypto_verify/16/ref/verify.c b/nacl/crypto_verify/16/ref/verify.c deleted file mode 100644 index d356060c..00000000 --- a/nacl/crypto_verify/16/ref/verify.c +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | #include "crypto_verify.h" | ||
2 | |||
3 | int crypto_verify(const unsigned char *x,const unsigned char *y) | ||
4 | { | ||
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; | ||
24 | } | ||
diff --git a/nacl/crypto_verify/16/used b/nacl/crypto_verify/16/used deleted file mode 100644 index e69de29b..00000000 --- a/nacl/crypto_verify/16/used +++ /dev/null | |||