mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
minor cleanup
This commit is contained in:
parent
caf6fc3a61
commit
68b910ecc8
1 changed files with 4 additions and 3 deletions
|
|
@ -158,8 +158,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Using the ctap-hid crate (Pure Rust, no C dependencies)
|
|
||||||
// #[cfg(feature = "pure-rust")]
|
|
||||||
fn sign_ed25519_hash(
|
fn sign_ed25519_hash(
|
||||||
credential_id: &[u8],
|
credential_id: &[u8],
|
||||||
hash: &[u8],
|
hash: &[u8],
|
||||||
|
|
@ -214,7 +212,10 @@ fn patch_signature_in_file(
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn read_header_from_file(file: &mut std::fs::File, offset: usize) -> Result<SignatureInFlash, Box<dyn std::error::Error>> {
|
fn read_header_from_file(
|
||||||
|
file: &mut std::fs::File,
|
||||||
|
offset: usize,
|
||||||
|
) -> Result<SignatureInFlash, Box<dyn std::error::Error>> {
|
||||||
// Ensure we're at the beginning of the file
|
// Ensure we're at the beginning of the file
|
||||||
file.seek(SeekFrom::Start(offset as u64))?;
|
file.seek(SeekFrom::Start(offset as u64))?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue