mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-01 11:58:28 +00:00
firmware: update embedded bootloader
This commit is contained in:
parent
edae40e22c
commit
2311465fdd
@ -38,20 +38,20 @@ static secbool known_bootloader(const uint8_t *hash, int len) {
|
|||||||
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, "\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;
|
||||||
// bootloader-2.0.2.bin (padded with 0xff)
|
// 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;
|
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)
|
// 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;
|
if (0 == memcmp(hash, "\xb1\x83\xd3\x31\xc7\xff\x3d\xcf\x54\x1e\x7e\x40\xf4\x9e\xc3\x53\x4c\xcc\xf3\x8c\x35\x39\x88\x81\x65\xc0\x5c\x25\xbd\xfc\xea\x14", 32)) return sectrue;
|
||||||
// bootloader-2.0.3.bin (padded with 0xff)
|
// 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;
|
if (0 == memcmp(hash, "\xab\xdb\x7d\xe2\xef\x44\x66\xa7\xb7\x1f\x2b\x02\xf3\xe1\x40\xe7\xcd\xf2\x8e\xc0\xbb\x33\x04\xce\x0d\xa5\xca\x02\x57\xb6\xd4\x30", 32)) return sectrue;
|
||||||
|
return secfalse;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static secbool latest_bootloader(const uint8_t *hash, int len) {
|
static secbool latest_bootloader(const uint8_t *hash, int len) {
|
||||||
if (len != 32) return secfalse;
|
if (len != 32) return secfalse;
|
||||||
// bootloader.bin (padded with 0x00)
|
// bootloader.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;
|
if (0 == memcmp(hash, "\xb1\x83\xd3\x31\xc7\xff\x3d\xcf\x54\x1e\x7e\x40\xf4\x9e\xc3\x53\x4c\xcc\xf3\x8c\x35\x39\x88\x81\x65\xc0\x5c\x25\xbd\xfc\xea\x14", 32)) return sectrue;
|
||||||
// bootloader.bin (padded with 0xff)
|
// bootloader.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;
|
if (0 == memcmp(hash, "\xab\xdb\x7d\xe2\xef\x44\x66\xa7\xb7\x1f\x2b\x02\xf3\xe1\x40\xe7\xcd\xf2\x8e\xc0\xbb\x33\x04\xce\x0d\xa5\xca\x02\x57\xb6\xd4\x30", 32)) return sectrue;
|
||||||
return secfalse;
|
return secfalse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user