diff options
author | Bernd Schoolmann <mail@quexten.com> | 2023-03-15 16:40:49 +0100 |
---|---|---|
committer | Bernd Schoolmann <mail@quexten.com> | 2023-03-26 04:28:03 +0200 |
commit | 9645a4636f6f4b04f4e6aba84e3c77fa0f2f6961 (patch) | |
tree | cfaf219d625c1dc73991e225bafce8949e5d16be /src/db.rs | |
parent | 2f9bd4eb45c57ce8e8d3011d7660223c05b50f98 (diff) | |
download | rbw-9645a4636f6f4b04f4e6aba84e3c77fa0f2f6961.tar.gz rbw-9645a4636f6f4b04f4e6aba84e3c77fa0f2f6961.zip |
Implement argon2 kdf
Diffstat (limited to 'src/db.rs')
-rw-r--r-- | src/db.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -164,7 +164,10 @@ pub struct Db { pub access_token: Option<String>, pub refresh_token: Option<String>, + pub kdf: Option<u32>, pub iterations: Option<u32>, + pub memory: Option<u32>, + pub parallelism: Option<u32>, pub protected_key: Option<String>, pub protected_private_key: Option<String>, pub protected_org_keys: std::collections::HashMap<String, String>, @@ -293,6 +296,7 @@ impl Db { self.access_token.is_none() || self.refresh_token.is_none() || self.iterations.is_none() + || self.kdf.is_none() || self.protected_key.is_none() } } |