mirror of
https://github.com/trussed-dev/trussed-auth.git
synced 2026-06-20 04:16:21 -07:00
Fix application salt path
The path was duplicated because it is added in the filestore and in the salt path string
This commit is contained in:
committed by
sosthene-nitrokey
parent
6beabd125e
commit
f09a02d9e6
+2
-5
@@ -17,7 +17,7 @@ use trussed::{
|
||||
};
|
||||
|
||||
use super::Error;
|
||||
use crate::{Pin, PinId, BACKEND_DIR, MAX_PIN_LENGTH};
|
||||
use crate::{Pin, PinId, MAX_PIN_LENGTH};
|
||||
|
||||
pub(crate) const SIZE: usize = 256;
|
||||
pub(crate) const CHACHA_TAG_LEN: usize = 16;
|
||||
@@ -497,10 +497,7 @@ fn pin_len(pin: &Pin) -> u8 {
|
||||
fn app_salt_path() -> PathBuf {
|
||||
const SALT_PATH: &str = "application_salt";
|
||||
|
||||
let mut path = PathBuf::new();
|
||||
path.push(&PathBuf::from(BACKEND_DIR));
|
||||
path.push(&PathBuf::from(SALT_PATH));
|
||||
path
|
||||
PathBuf::from(SALT_PATH)
|
||||
}
|
||||
|
||||
pub(crate) fn get_app_salt<S: Filestore, R: CryptoRng + RngCore>(
|
||||
|
||||
Reference in New Issue
Block a user