fix: fixed incorrect value for Kib

This commit is contained in:
NinekoTheCat 2023-12-25 01:50:29 +01:00
parent 6fcac572d2
commit 029c7441ef
No known key found for this signature in database
GPG key ID: 700DB3F678A4AB66

View file

@ -190,11 +190,11 @@ impl Service<'_> {
RoomVersionId::V5,
RoomVersionId::V11,
];
// 2432 Kib blocks, iterations = 2, parallelism = 1 for more info https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#argon2id
// 19456 Kib blocks, iterations = 2, parallelism = 1 for more info https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#argon2id
let argon = Argon2::new(
argon2::Algorithm::Argon2id,
argon2::Version::default(),
argon2::Params::new(2432, 2, 1, None).expect("valid parameters"),
argon2::Params::new(19456, 2, 1, None).expect("valid parameters"),
);
let mut s = Self {
db,