pfl_upg: fix false key detection in some fws, add devkey

This commit is contained in:
theubusu
2026-05-05 23:00:25 +02:00
parent f4345b75f1
commit b6a1454d76
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ pub fn try_find_key(sig: &[u8], ciphertext: &[u8]) -> Result<Option<(String, [u8
None => continue, //there is no 0, continue
};
let fname = &dec_ciphertext[..end];
if fname.is_ascii() { //is ascii filename
if fname.len() > 1 && fname.is_ascii() { //is ascii filename
result = Some((name.to_string(), aes_key.try_into().unwrap()));
break
}