Package: nextepc / 0.3.10+nods-3

0006-Fix-big-endian-bug.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Ruben Undheim <ruben.undheim@gmail.com>
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
 }