aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--halfsiphash.c6
-rw-r--r--test.c5
2 files changed, 4 insertions, 7 deletions
diff --git a/halfsiphash.c b/halfsiphash.c
index 773c0fc..689e125 100644
--- a/halfsiphash.c
+++ b/halfsiphash.c
@@ -30,12 +30,6 @@
(p)[2] = (uint8_t)((v) >> 16); \
(p)[3] = (uint8_t)((v) >> 24);
-#define U32TO8_LE(p, v) \
- (p)[0] = (uint8_t)((v)); \
- (p)[1] = (uint8_t)((v) >> 8); \
- (p)[2] = (uint8_t)((v) >> 16); \
- (p)[3] = (uint8_t)((v) >> 24);
-
#define U8TO32_LE(p) \
(((uint32_t)((p)[0])) | ((uint32_t)((p)[1]) << 8) | \
((uint32_t)((p)[2]) << 16) | ((uint32_t)((p)[3]) << 24))
diff --git a/test.c b/test.c
index ab7ce9a..b6547a5 100644
--- a/test.c
+++ b/test.c
@@ -46,7 +46,9 @@ size_t lengths[4] = {8, 16, 4, 8};
int main() {
uint8_t in[64], out[16], k[16];
int i;
+#ifndef GETVECTORS
int fails = 0;
+#endif
for (i = 0; i < 16; ++i)
k[i] = i;
@@ -98,8 +100,9 @@ int main() {
#else
if (!fails)
printf("OK\n");
-#endif
+
fails = 0;
+#endif
}
return 0;