Skip to content

Commit

Permalink
Merge pull request #113 from quexten/fix/argon2-login
Browse files Browse the repository at this point in the history
Fix argon2 login
  • Loading branch information
doy authored Mar 27, 2023
2 parents fbb1634 + 15613b6 commit 8c49b1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ impl Identity {
hasher.update(email.as_bytes());
let salt = hasher.finalize();

let mut output_key_material = [0u8];
let argon2_config = argon2::Argon2::new(
argon2::Algorithm::Argon2id,
argon2::Version::V0x13,
Expand All @@ -57,10 +56,9 @@ impl Identity {
&argon2_config,
password.password(),
&salt,
&mut output_key_material,
enc_key,
)
.map_err(|_| Error::Argon2)?;
enc_key.copy_from_slice(&output_key_material);
}
};

Expand Down

0 comments on commit 8c49b1e

Please sign in to comment.