mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-19 04:48:12 +00:00
Fix small typo in return value checking (#75)
This commit is contained in:
parent
cf21bb2fbf
commit
228f9425d1
2
bip32.c
2
bip32.c
@ -470,7 +470,7 @@ int hdnode_get_shared_key(const HDNode *node, const uint8_t *peer_public_key, ui
|
||||
*result_size = 33;
|
||||
return 0;
|
||||
} else {
|
||||
if (!ecdh_multiply(node->curve->params, node->private_key, peer_public_key, session_key)) {
|
||||
if (ecdh_multiply(node->curve->params, node->private_key, peer_public_key, session_key) != 0) {
|
||||
return 1;
|
||||
}
|
||||
*result_size = 65;
|
||||
|
Loading…
Reference in New Issue
Block a user