Skip to content

Commit

Permalink
Added alternate OKLI uImage signature
Browse files Browse the repository at this point in the history
  • Loading branch information
devttys0 committed Nov 22, 2024
1 parent b37cc9b commit 20da629
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/signatures/uimage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ pub const DESCRIPTION: &str = "uImage firmware image";

/// uImage magic bytes
pub fn uimage_magic() -> Vec<Vec<u8>> {
vec![b"\x27\x05\x19\x56".to_vec()]
vec![
// Standard uImage magic
b"\x27\x05\x19\x56".to_vec(),
// Alternate uImage magic (https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=01a1e21863aa30c7a2c252ff06b9aef0cf957970)
b"OKLI".to_vec(),
]
}

/// Validates uImage signatures
Expand Down

0 comments on commit 20da629

Please sign in to comment.