diff --git a/firmware/storage.c b/firmware/storage.c index a2c4ce2b31..19e70dd2d0 100644 --- a/firmware/storage.c +++ b/firmware/storage.c @@ -31,6 +31,7 @@ #include "pbkdf2.h" #include "bip32.h" #include "bip39.h" +#include "secp256k1.h" #include "util.h" #include "memory.h" #include "rng.h" @@ -274,7 +275,7 @@ const uint8_t *storage_getSeed(void) bool storage_getRootNode(HDNode *node, const char *curve) { // if storage has node, decrypt and use it - if (storage.has_node && strcmp(curve, "secp256k1") == 0) { + if (storage.has_node && strcmp(curve, SECP256K1_NAME) == 0) { if (!protectPassphrase()) { return false; } diff --git a/vendor/trezor-crypto b/vendor/trezor-crypto index c983afd72f..d577410fc4 160000 --- a/vendor/trezor-crypto +++ b/vendor/trezor-crypto @@ -1 +1 @@ -Subproject commit c983afd72f40a8c65355af076afd9c132878e8a5 +Subproject commit d577410fc4a87262c107fb25657158f8f8ba720e