tUse libsodium default parameters for key derivation - safe - password protected secret keeper
HTML git clone git://git.z3bra.org/safe.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 6a87b7bf64a003e76795677e8c32fa90628d982c
DIR parent 27a7417e7ddf4db577995be2d4595dad9f418c5a
HTML Author: Willy Goiffon <contact@z3bra.org>
Date: Wed, 19 Oct 2022 15:34:30 +0200
Use libsodium default parameters for key derivation
Diffstat:
M safe.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/safe.c b/safe.c
t@@ -37,9 +37,9 @@ struct crypto crypto_defaults = {
.magic = {'C','R','E','A','M','\1'},
.version = 0x10,
.xchacha20poly1305_bufsiz = BUFSIZ, /* must match size in readsecret() and writesecret() */
- .argon2id_memory = 64*1024,
- .argon2id_time = 3,
- .argon2id_threads = 1, /* hardcoded in libsodium */
+ .argon2id_memory = crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE/1024,
+ .argon2id_time = crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE,
+ .argon2id_threads = 1, /* not used, hardcoded in libsodium */
};
struct safe {