mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix warnings that have cropped up
This commit is contained in:
parent
e2026318b6
commit
a9e2b15c7e
1 changed files with 3 additions and 3 deletions
|
|
@ -2033,7 +2033,7 @@ impl<'a> RootKeys {
|
|||
let kernel_region = self.kernel();
|
||||
let sig_region = &kernel_region[..core::mem::size_of::<SignatureInFlash>()];
|
||||
let sig_rec: &SignatureInFlash = unsafe{(sig_region.as_ptr() as *const SignatureInFlash).as_ref().unwrap()}; // this pointer better not be null, we just created it!
|
||||
let sig = Signature::new(sig_rec.signature);
|
||||
let sig = Signature::from_bytes(&sig_rec.signature).expect("Signature malformed");
|
||||
|
||||
let kern_len = sig_rec.signed_len as usize;
|
||||
log::debug!("recorded kernel len: {} bytes", kern_len);
|
||||
|
|
@ -2068,7 +2068,7 @@ impl<'a> RootKeys {
|
|||
*dst = src;
|
||||
}
|
||||
let sig_rec: &SignatureInFlash = unsafe{(sig_region.as_ptr() as *const SignatureInFlash).as_ref().unwrap()}; // this pointer better not be null, we just created it!
|
||||
let sig = Signature::new(sig_rec.signature);
|
||||
let sig = Signature::from_bytes(&sig_rec.signature).expect("Signature malformed");
|
||||
log::debug!("sig_rec ({}): {:x?}", sig_rec.signed_len, sig_rec.signature);
|
||||
log::debug!("sig: {:x?}", sig.to_bytes());
|
||||
log::debug!("pubkey: {:x?}", pubkey.to_bytes());
|
||||
|
|
@ -2100,7 +2100,7 @@ impl<'a> RootKeys {
|
|||
}
|
||||
}
|
||||
let sig_rec: &SignatureInFlash = unsafe{(sig_region.as_ptr() as *const SignatureInFlash).as_ref().unwrap()};
|
||||
let sig = Signature::new(sig_rec.signature);
|
||||
let sig = Signature::from_bytes(&sig_rec.signature).expect("Signature malformed");
|
||||
|
||||
let mut sigtype = SignatureResult::SelfSignOk;
|
||||
// check against all the known signature types in detail
|
||||
|
|
|
|||
Loading…
Reference in a new issue