[Commits] [SCM] claws branch, master, updated. 3.13.2-120-ge630ef9
ticho at claws-mail.org
ticho at claws-mail.org
Mon Apr 11 18:31:05 CEST 2016
The branch, master has been updated
via e630ef9df0b19c3bc97b79f949fbbf3dc32d0af0 (commit)
from 1da06231697b58750eb5549bb6844d20f9fade08 (commit)
Summary of changes:
src/password.c | 3 +++
1 file changed, 3 insertions(+)
- Log -----------------------------------------------------------------
commit e630ef9df0b19c3bc97b79f949fbbf3dc32d0af0
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Mon Apr 11 18:30:18 2016 +0200
Show duration of PBKDF2 computation in debug output.
diff --git a/src/password.c b/src/password.c
index 461a5b7..6cef021 100644
--- a/src/password.c
+++ b/src/password.c
@@ -41,6 +41,7 @@
#include "common/passcrypt.h"
#include "common/plugin.h"
#include "common/pkcs5_pbkdf2.h"
+#include "common/timing.h"
#include "common/utils.h"
#include "account.h"
#include "alertpanel.h"
@@ -126,8 +127,10 @@ static guchar *_make_key_deriv(const gchar *passphrase, guint rounds)
salt = g_base64_decode(saltpref, &saltlen);
kd = g_malloc0(KD_LENGTH);
+ START_TIMING("PBKDF2");
ret = pkcs5_pbkdf2(passphrase, strlen(passphrase), salt, saltlen,
kd, KD_LENGTH, rounds);
+ END_TIMING();
g_free(salt);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list