projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SEC: Fix digest len and block len reported by algorithms.
[bertos.git]
/
bertos
/
sec
/
hash
/
sha1.c
diff --git
a/bertos/sec/hash/sha1.c
b/bertos/sec/hash/sha1.c
index 0f0aba50fdff5d8ae10b849c5b2afeaf2841e01a..6f195a5bb0ff3d833c139e4b745ebd7678b6904b 100644
(file)
--- a/
bertos/sec/hash/sha1.c
+++ b/
bertos/sec/hash/sha1.c
@@
-54,8
+54,8
@@
#include <stdlib.h>
#include <sec/util.h>
-#define SHA1_BLOCK_LEN
16
-#define SHA1_DIGEST_LEN
16
+#define SHA1_BLOCK_LEN
64
+#define SHA1_DIGEST_LEN
20
static void SHA1Transform(uint32_t state[5], const uint8_t buffer[64]);