This commit is contained in:
parent
985f6f664b
commit
f2a8e412ac
@ -79,11 +79,12 @@ impl PamFido2Luks {
|
|||||||
.collect();
|
.collect();
|
||||||
let credentials: Vec<&FidoCredential> = credentials.iter().collect();
|
let credentials: Vec<&FidoCredential> = credentials.iter().collect();
|
||||||
if !credentials.is_empty() {
|
if !credentials.is_empty() {
|
||||||
|
let salt = util::sha256(&[password.as_bytes()]);
|
||||||
let secret = util::sha256(&[
|
let secret = util::sha256(&[
|
||||||
password.as_bytes(),
|
&salt,
|
||||||
&perform_challenge(
|
&perform_challenge(
|
||||||
&credentials[..],
|
&credentials[..],
|
||||||
&util::sha256(&[password.as_bytes()]),
|
&salt,
|
||||||
Duration::from_secs(15),
|
Duration::from_secs(15),
|
||||||
pin.map(AsRef::as_ref),
|
pin.map(AsRef::as_ref),
|
||||||
)?
|
)?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user