mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
fix unaligned access in serialno; update trezor-crypto
This commit is contained in:
parent
d7c0fbc379
commit
fd79570aaf
@ -28,9 +28,9 @@
|
|||||||
|
|
||||||
void fill_serialno_fixed(char *s)
|
void fill_serialno_fixed(char *s)
|
||||||
{
|
{
|
||||||
uint8_t uuid[32];
|
uint32_t uuid[8];
|
||||||
desig_get_unique_id((uint32_t *)uuid);
|
desig_get_unique_id(uuid);
|
||||||
sha256_Raw(uuid, 12, uuid);
|
sha256_Raw((const uint8_t *)uuid, 12, (uint8_t *)uuid);
|
||||||
sha256_Raw(uuid, 32, uuid);
|
sha256_Raw((const uint8_t *)uuid, 32, (uint8_t *)uuid);
|
||||||
data2hex(uuid, 12, s);
|
data2hex(uuid, 12, s);
|
||||||
}
|
}
|
||||||
|
2
vendor/trezor-crypto
vendored
2
vendor/trezor-crypto
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 7ce6b8b14761ab770ff896f7d9c7a76d434e3df2
|
Subproject commit 62b8f845f28539df7b305664ae56ba57a8cbc44c
|
Loading…
Reference in New Issue
Block a user