mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +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)
|
||||
{
|
||||
uint8_t uuid[32];
|
||||
desig_get_unique_id((uint32_t *)uuid);
|
||||
sha256_Raw(uuid, 12, uuid);
|
||||
sha256_Raw(uuid, 32, uuid);
|
||||
uint32_t uuid[8];
|
||||
desig_get_unique_id(uuid);
|
||||
sha256_Raw((const uint8_t *)uuid, 12, (uint8_t *)uuid);
|
||||
sha256_Raw((const uint8_t *)uuid, 32, (uint8_t *)uuid);
|
||||
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