From: Ruben Undheim Date: Sun, 25 Nov 2018 11:57:16 +0100 Subject: Fix big-endian bug --- lib/core/src/sha1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/src/sha1.c b/lib/core/src/sha1.c index edd3b4f..cc29243 100644 --- a/lib/core/src/sha1.c +++ b/lib/core/src/sha1.c @@ -138,8 +138,8 @@ void sha1_final(sha1_ctx *ctx, c_uint8_t *digest) n[4] = SWAP32(ctx->Message_Digest[4]); memcpy(digest, n, SHA1_DIGEST_SIZE); - } #endif + } #endif }