Skip to content

Commit

Permalink
Merge pull request #760 from ReFirmLabs/uimage_okli
Browse files Browse the repository at this point in the history
Adds alternate OKLI uImage signature
  • Loading branch information
devttys0 authored Nov 22, 2024
2 parents b37cc9b + 20da629 commit 0a9472c
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 0a9472c

Please sign in to comment.