From 4c0c12343fa6e890cf1895f872b8ef9e52f6d51d Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Fri, 22 Apr 2016 21:30:04 +0000 Subject: [PATCH] sha1: moved SHA1HANDSOFF definition --- src/sha1.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sha1.c b/src/sha1.c index 028d3a7..429e22f 100644 --- a/src/sha1.c +++ b/src/sha1.c @@ -70,14 +70,14 @@ use SHA1_ prefix for public api move public api to sha1.h */ -/* Don't change user's data */ -#define SHA1HANDSOFF - #include #include "ostypes.h" #include "sha1.h" +/* Don't change user's data */ +#define SHA1HANDSOFF + static uint32_t host_to_be(uint32_t i); static void SHA1_Transform(uint32_t state[5], const uint8_t buffer[64]); @@ -115,6 +115,7 @@ static uint32_t host_to_be(uint32_t i) } check = {1}; return check.c ? le_to_be(i) : i; #endif +#undef le_to_be } /* Hash a single 512-bit block. This is the core of the algorithm. */