fixup tag return API

returns a [u8;4] instead of a u32
This commit is contained in:
bunnie 2025-10-06 15:20:56 +08:00
parent 03ea3c9d0c
commit 9c9c6f67a7
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ pub fn boot_or_die() -> ! {
Ok((k, tag)) => crate::println!(
"**should be unreachable** Booted with key {}({})",
k,
core::str::from_utf8(&tag.to_le_bytes()).unwrap_or("invalid tag")
core::str::from_utf8(&tag).unwrap_or("invalid tag")
),
Err(e) => crate::println!("Image did not validate: {:?}", e),
}

View file

@ -269,7 +269,7 @@ pub unsafe extern "C" fn rust_entry(signed_buffer: *const usize, signature: u32)
Ok((k, tag)) => println!(
"*** Kernel signature check by key @ {}({}) OK ***",
k,
core::str::from_utf8(&tag.to_le_bytes()).unwrap_or("invalid tag")
core::str::from_utf8(&tag).unwrap_or("invalid tag")
),
Err(e) => {
println!("Kernel failed signature check. Dying: {:?}", e);
@ -293,7 +293,7 @@ pub unsafe extern "C" fn rust_entry(signed_buffer: *const usize, signature: u32)
println!(
"*** Detached app signature check by key @ {}({}) OK ***",
k,
core::str::from_utf8(&tag.to_le_bytes()).unwrap_or("invalid tag")
core::str::from_utf8(&tag).unwrap_or("invalid tag")
);
true
}