Skip to content

Commit

Permalink
Improve panicing in verification
Browse files Browse the repository at this point in the history
  • Loading branch information
LawrenceHunter committed Feb 20, 2024
1 parent 299cc7f commit bf1ff20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ pub fn verify_kernel() -> Result<(), ed25519_compact::Error> {
println!("Stored kernel hashed:");
pretty_print_slice(hash.as_slice());

// For the key access the libraries own error message is more useful
println!("Loading server public key...");
let public_key =
ed25519_compact::PublicKey::from_slice(crate::helper::PUBLIC_KEY)
Expand All @@ -427,6 +428,7 @@ pub fn verify_kernel() -> Result<(), ed25519_compact::Error> {
64,
)
};

let signature =
ed25519_compact::Signature::from_slice(signature_bytes).unwrap();
println!("Loaded kernel signature:");
Expand Down

0 comments on commit bf1ff20

Please sign in to comment.