diff options
author | lloyd <[email protected]> | 2012-03-28 19:46:27 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-03-28 19:46:27 +0000 |
commit | 4c12fa5de1b59f2c58f974412231a19c4dc7c10f (patch) | |
tree | 0a48fbf3f63f153a155963eb98bd00e8f4ef43be /src/tls/sessions_sqlite | |
parent | ff7706d833cdcf754392bf1f7efe5de8190b7990 (diff) |
Rework session crypto code. Drop the 4 bytes of zeros reserved for
flags; if params change just regen the magic value and drop old
sessions. Check the magic value right from the start. Use constants
for internal sizes.
Increase default PBKDF2 iterations in the SQLite session manager
to 64K.
Diffstat (limited to 'src/tls/sessions_sqlite')
-rw-r--r-- | src/tls/sessions_sqlite/tls_sqlite_sess_mgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls/sessions_sqlite/tls_sqlite_sess_mgr.cpp b/src/tls/sessions_sqlite/tls_sqlite_sess_mgr.cpp index 04201efe3..4d78a5365 100644 --- a/src/tls/sessions_sqlite/tls_sqlite_sess_mgr.cpp +++ b/src/tls/sessions_sqlite/tls_sqlite_sess_mgr.cpp @@ -211,7 +211,7 @@ Session_Manager_SQLite::Session_Manager_SQLite(const std::string& passphrase, // new database case MemoryVector<byte> salt = rng.random_vec(16); - const size_t iterations = 32000; + const size_t iterations = 64 * 1024; size_t check_val = 0; m_session_key = derive_key(passphrase, &salt[0], salt.size(), |