projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
limit sha512 rounds to similar runtime to sha256 limit
[musl]
/
src
/
misc
/
crypt_sha512.c
diff --git
a/src/misc/crypt_sha512.c
b/src/misc/crypt_sha512.c
index
7ca804e
..
2c0de69
100644
(file)
--- a/
src/misc/crypt_sha512.c
+++ b/
src/misc/crypt_sha512.c
@@
-193,7
+193,7
@@
static char *to64(char *s, unsigned int u, int n)
#define SALT_MAX 16
#define ROUNDS_DEFAULT 5000
#define ROUNDS_MIN 1000
-#define ROUNDS_MAX
5
0000
+#define ROUNDS_MAX
2
0000
/* hash n bytes of the repeated md message digest */
static void hashmd(struct sha512 *s, unsigned int n, const void *md)