1
0
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:
Pavol Rusnak 2016-08-29 22:37:01 +02:00
parent d7c0fbc379
commit fd79570aaf
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 5 additions and 5 deletions

View File

@ -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);
} }

@ -1 +1 @@
Subproject commit 7ce6b8b14761ab770ff896f7d9c7a76d434e3df2 Subproject commit 62b8f845f28539df7b305664ae56ba57a8cbc44c