OSDN Git Service
(root)
/
android-x86
/
external-e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbb8594
)
libext2fs: fix blocksize for SHA512
author
Theodore Ts'o
<tytso@mit.edu>
Thu, 26 Mar 2015 04:17:48 +0000
(
00:17
-0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 26 Mar 2015 04:17:48 +0000
(
00:17
-0400)
The blocksize of SHA512 is 128 bytes, not 512.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/sha512.c
patch
|
blob
|
history
diff --git
a/lib/ext2fs/sha512.c
b/lib/ext2fs/sha512.c
index
3539c28
..
f113053
100644
(file)
--- a/
lib/ext2fs/sha512.c
+++ b/
lib/ext2fs/sha512.c
@@
-202,7
+202,7
@@
static void sha512_done(struct hash_state * md, unsigned char *out)
}
#define MIN(x, y) ( ((x)<(y))?(x):(y) )
-#define SHA512_BLOCKSIZE
512
+#define SHA512_BLOCKSIZE
128
static void sha512_process(struct hash_state * md,
const unsigned char *in,
unsigned long inlen)