projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3be8295
)
use argon2id
author
Martin Schanzenbach
<mschanzenbach@posteo.de>
Mon, 25 May 2020 22:42:24 +0000
(
00:42
+0200)
committer
Martin Schanzenbach
<mschanzenbach@posteo.de>
Mon, 25 May 2020 22:42:24 +0000
(
00:42
+0200)
src/util/crypto_pow.c
patch
|
blob
|
history
diff --git
a/src/util/crypto_pow.c
b/src/util/crypto_pow.c
index 35511a1306caf1edb6b9980bf04ec328a59145cc..6176afc33739363bfe427c44deecfeb22e43c4b7 100644
(file)
--- a/
src/util/crypto_pow.c
+++ b/
src/util/crypto_pow.c
@@
-43,17
+43,16
@@
GNUNET_CRYPTO_pow_hash (const char *salt,
size_t buf_len,
struct GNUNET_HashCode *result)
{
- GNUNET_break (ARGON2_OK == argon2d_hash_raw (3, /* iterations */
- 1024, /* memory (1 MiB) */
- 1, /* threads */
- buf,
- buf_len,
- salt,
- strlen (salt),
- result,
- sizeof (struct
- GNUNET_HashCode)));
-
+ GNUNET_break (ARGON2_OK ==
+ argon2id_hash_raw (3, /* iterations */
+ 1024, /* memory (1 MiB) */
+ 1, /* threads */
+ buf,
+ buf_len,
+ salt,
+ strlen (salt),
+ result,
+ sizeof (struct GNUNET_HashCode)));
}