mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-12 18:49:07 +00:00
firmware: bundle new bootloader 2.0.3
This commit is contained in:
parent
5d645ef61b
commit
62c0e91dd0
@ -39,15 +39,19 @@ static secbool known_bootloader(const uint8_t *hash, int len) {
|
||||
// bootloader-2.0.2.bin (padded with 0xff)
|
||||
if (0 == memcmp(hash, "\xcc\x6b\x35\xc3\x8f\x29\x5c\xbd\x7d\x31\x69\xaf\xae\xf1\x61\x01\xef\xbe\x9f\x3b\x0a\xfd\xc5\x91\x70\x9b\xf5\xa0\xd5\xa4\xc5\xe0", 32)) return sectrue;
|
||||
return secfalse;
|
||||
// bootloader-2.0.3.bin (padded with 0x00)
|
||||
if (0 == memcmp(hash, "\xf9\xf3\x87\xbc\xd4\x7e\x9f\xdc\x6d\x97\xe7\x84\x3e\x7d\x87\x3b\x08\x43\x43\x63\xe2\x47\x71\x68\xe0\x40\xba\x1f\x21\x7f\xe2\x32", 32)) return sectrue;
|
||||
// bootloader-2.0.3.bin (padded with 0xff)
|
||||
if (0 == memcmp(hash, "\x2b\x58\x9d\x79\xcd\xe2\xe4\x3f\xe3\x14\x40\xb5\x41\x34\xa9\x94\xb4\xd5\xb9\x20\x12\x30\xd7\x15\xec\xda\x6f\x86\x18\x75\x23\xc8", 32)) return sectrue;
|
||||
}
|
||||
*/
|
||||
|
||||
static secbool latest_bootloader(const uint8_t *hash, int len) {
|
||||
if (len != 32) return secfalse;
|
||||
// bootloader.bin (padded with 0x00)
|
||||
if (0 == memcmp(hash, "\x2e\xf7\x47\xf8\x49\x87\x1e\xc8\xc6\x01\x35\xd6\x32\xe5\x5a\xd1\x56\x18\xf8\x64\x87\xb7\xaa\x7c\x62\x0e\xc3\x0d\x25\x69\x4e\x18", 32)) return sectrue;
|
||||
if (0 == memcmp(hash, "\xf9\xf3\x87\xbc\xd4\x7e\x9f\xdc\x6d\x97\xe7\x84\x3e\x7d\x87\x3b\x08\x43\x43\x63\xe2\x47\x71\x68\xe0\x40\xba\x1f\x21\x7f\xe2\x32", 32)) return sectrue;
|
||||
// bootloader.bin (padded with 0xff)
|
||||
if (0 == memcmp(hash, "\xcc\x6b\x35\xc3\x8f\x29\x5c\xbd\x7d\x31\x69\xaf\xae\xf1\x61\x01\xef\xbe\x9f\x3b\x0a\xfd\xc5\x91\x70\x9b\xf5\xa0\xd5\xa4\xc5\xe0", 32)) return sectrue;
|
||||
if (0 == memcmp(hash, "\x2b\x58\x9d\x79\xcd\xe2\xe4\x3f\xe3\x14\x40\xb5\x41\x34\xa9\x94\xb4\xd5\xb9\x20\x12\x30\xd7\x15\xec\xda\x6f\x86\x18\x75\x23\xc8", 32)) return sectrue;
|
||||
return secfalse;
|
||||
}
|
||||
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user