diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-03-27 01:51:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 01:51:55 -0500 |
commit | 8c49b1ea5df2325148a48cb390c75b026c8ea6f9 (patch) | |
tree | e1a051db62754e4b8ba5a46cb6cb8c0d39271ecb | |
parent | fbb1634750701e6c98eab6ae2afc6467edc13475 (diff) | |
parent | 15613b6620d21fff2e24d966c007aadb14630fdb (diff) | |
download | rbw-8c49b1ea5df2325148a48cb390c75b026c8ea6f9.tar.gz rbw-8c49b1ea5df2325148a48cb390c75b026c8ea6f9.zip |
Merge pull request #113 from quexten/fix/argon2-login
Fix argon2 login
-rw-r--r-- | src/identity.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/identity.rs b/src/identity.rs index 123dc31..7836a11 100644 --- a/src/identity.rs +++ b/src/identity.rs @@ -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, @@ -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); } }; |