diff --git a/firmware/fsm.c b/firmware/fsm.c index 7369fee32..3cea7f233 100644 --- a/firmware/fsm.c +++ b/firmware/fsm.c @@ -138,7 +138,7 @@ HDNode *fsm_getDerivedNode(const char *curve, uint32_t *address_n, size_t addres if (!address_n || address_n_count == 0) { return &node; } - if (hdnode_private_ckd_cached(&node, address_n, address_n_count) == 0) { + if (hdnode_private_ckd_cached(&node, address_n, address_n_count, NULL) == 0) { fsm_sendFailure(FailureType_Failure_Other, "Failed to derive private key"); layoutHome(); return 0; diff --git a/firmware/signing.c b/firmware/signing.c index 22dcd91b4..0a00cf353 100644 --- a/firmware/signing.c +++ b/firmware/signing.c @@ -518,7 +518,7 @@ void signing_txack(TransactionType *tx) if (idx2 == idx1) { memcpy(&input, tx->inputs, sizeof(TxInputType)); memcpy(&node, root, sizeof(HDNode)); - if (hdnode_private_ckd_cached(&node, tx->inputs[0].address_n, tx->inputs[0].address_n_count) == 0) { + if (hdnode_private_ckd_cached(&node, tx->inputs[0].address_n, tx->inputs[0].address_n_count, NULL) == 0) { fsm_sendFailure(FailureType_Failure_Other, "Failed to derive private key"); signing_abort(); return; diff --git a/firmware/transaction.c b/firmware/transaction.c index c4667b963..36a8bdc90 100644 --- a/firmware/transaction.c +++ b/firmware/transaction.c @@ -68,7 +68,7 @@ int compile_output(const CoinType *coin, const HDNode *root, TxOutputType *in, T if (in->address_n_count > 0) { HDNode node; memcpy(&node, root, sizeof(HDNode)); - if (hdnode_private_ckd_cached(&node, in->address_n, in->address_n_count) == 0) { + if (hdnode_private_ckd_cached(&node, in->address_n, in->address_n_count, NULL) == 0) { return 0; } layoutProgressUpdate(true); diff --git a/firmware/u2f.c b/firmware/u2f.c index e52364e0d..ddf560209 100644 --- a/firmware/u2f.c +++ b/firmware/u2f.c @@ -460,7 +460,7 @@ const HDNode *getDerivedNode(uint32_t *address_n, size_t address_n_count) if (!address_n || address_n_count == 0) { return &node; } - if (hdnode_private_ckd_cached(&node, address_n, address_n_count) == 0) { + if (hdnode_private_ckd_cached(&node, address_n, address_n_count, NULL) == 0) { layoutHome(); debugLog(0, "", "ERR: Derive private failed"); return 0; diff --git a/vendor/trezor-crypto b/vendor/trezor-crypto index 6aac03d2d..b55473a01 160000 --- a/vendor/trezor-crypto +++ b/vendor/trezor-crypto @@ -1 +1 @@ -Subproject commit 6aac03d2d853eadaf9e91452b15381594fcf09b1 +Subproject commit b55473a01ecfd095d1f4bd068c8d3385b993b986