mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 12:00:59 +00:00
update trezor-crypto
This commit is contained in:
parent
8b70713e2b
commit
c051dfde9d
@ -265,7 +265,7 @@ int main(void)
|
||||
switch (state) {
|
||||
case 1:
|
||||
layoutProgress("WORKING", frame % 41 * 25, frame % 4);
|
||||
pbkdf2(pass, passlen, salt, saltlen, 100, seed, 64, NULL);
|
||||
pbkdf2_hmac_sha512(pass, passlen, salt, saltlen, 100, seed, 64, NULL);
|
||||
usbd_ep_write_packet(usbd_dev, 0x81, seed, 64);
|
||||
break;
|
||||
}
|
||||
|
@ -229,7 +229,7 @@ bool storage_getRootNode(HDNode *node)
|
||||
// decrypt hd node
|
||||
uint8_t secret[64];
|
||||
layoutProgressSwipe("Waking up", 0, 0);
|
||||
pbkdf2((const uint8_t *)sessionPassphrase, strlen(sessionPassphrase), (uint8_t *)"TREZORHD", 8, BIP39_PBKDF2_ROUNDS, secret, 64, get_root_node_callback);
|
||||
pbkdf2_hmac_sha512((const uint8_t *)sessionPassphrase, strlen(sessionPassphrase), (uint8_t *)"TREZORHD", 8, BIP39_PBKDF2_ROUNDS, secret, 64, get_root_node_callback);
|
||||
aes_decrypt_ctx ctx;
|
||||
aes_decrypt_key256(secret, &ctx);
|
||||
aes_cbc_decrypt(sessionRootNode.chain_code, sessionRootNode.chain_code, 32, secret + 32, &ctx);
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit ad8e618ed28f4dca108461a9afdbbaadeb26746c
|
||||
Subproject commit f6560c7d1303a50d215cffab87acc7fc8c8964a4
|
Loading…
Reference in New Issue
Block a user