Skip to content

Commit

Permalink
Merge pull request #10 from Nitrokey/todo
Browse files Browse the repository at this point in the history
Remove todo!
  • Loading branch information
sosthene-nitrokey committed Mar 29, 2023
2 parents 370d8d6 + d8a36c1 commit eedae52
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,21 @@ impl<'a, T: trussed::Client + trussed::client::Ed255> LoadedAuthenticator<'a, T>
response: None,
exponentiation: None,
} => self.mutual_auth_2(auth, r, c, reply.lend())?,
_ => todo!(),
Auth {
witness,
challenge,
response,
exponentiation,
} => {
warn!(
"General authenticate with unexpected data: witness: {:?}, challenge: {:?}, response: {:?}, exponentiation: {:?}",
witness.map(|s|s.len()),
challenge.map(|s|s.len()),
response.map(|s|s.len()),
exponentiation.map(|s|s.len()),
);
return Err(Status::IncorrectDataParameter);
}
}
Ok(())
}
Expand Down

0 comments on commit eedae52

Please sign in to comment.