gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis] 02/03: if defined debug for scrypt


From: gnunet
Subject: [taler-anastasis] 02/03: if defined debug for scrypt
Date: Fri, 24 Apr 2020 18:55:58 +0200

This is an automated email from the git hooks/post-receive script.

dennis-neufeld pushed a commit to branch master
in repository anastasis.

commit caf935fa151f3e37773a9c42ebe0985f8b4f441c
Author: Dennis Neufeld <address@hidden>
AuthorDate: Fri Apr 24 16:12:38 2020 +0000

    if defined debug for scrypt
---
 src/util/anastasis_crypto.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/util/anastasis_crypto.c b/src/util/anastasis_crypto.c
index 24db515..89ee857 100644
--- a/src/util/anastasis_crypto.c
+++ b/src/util/anastasis_crypto.c
@@ -28,6 +28,14 @@
 #include <gnunet/gnunet_util_lib.h>
 #include <string.h>
 
+#if defined(DEBUG) || defined(DEBUG2)
+#define SCRYPT_ITERATION 1
+
+#else
+#define SCRYPT_ITERATION 1000
+#endif
+
+
 /**
  * Compute @a key and @a iv.
  *
@@ -295,7 +303,7 @@ ANASTASIS_CRYPTO_user_identifier_derive (
                                   1, // subalgo
                                   server_salt->salt,
                                   strlen (server_salt->salt),
-                                  1000, // iterations
+                                  SCRYPT_ITERATION, // iterations
                                   sizeof (struct
                                           ANASTASIS_CRYPTO_UserIdentifier),
                                   id));

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]