diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-21 12:10:59 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-21 12:10:59 +0100 |
commit | b212e765ad521f685bb6817e9b65b19a51d9a933 (patch) | |
tree | 9ec1059eadd8e5bf925e32e801ffbddee7f239d0 /src/libutil/util.c | |
parent | b4389fd12e501a30af0f27693a6ab60bb3c8ad3e (diff) | |
download | rspamd-b212e765ad521f685bb6817e9b65b19a51d9a933.tar.gz rspamd-b212e765ad521f685bb6817e9b65b19a51d9a933.zip |
[Feature] Allow catena encrypted passwords in controller
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r-- | src/libutil/util.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index 7a649508e..4120849a3 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -77,8 +77,16 @@ const struct rspamd_controller_pbkdf pbkdf_list[] = { { + .type = RSPAMD_CRYPTOBOX_PBKDF2, .id = RSPAMD_PBKDF_ID_V1, - .rounds = 16000, + .complexity = 16000, + .salt_len = 20, + .key_len = rspamd_cryptobox_HASHBYTES / 2 + }, + { + .type = RSPAMD_CRYPTOBOX_CATENA, + .id = RSPAMD_PBKDF_ID_V2, + .complexity = 10, .salt_len = 20, .key_len = rspamd_cryptobox_HASHBYTES / 2 } |