mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 19:38:09 +00:00
Do not use hardcoded string for secp256k1.
This commit is contained in:
parent
56238e63fc
commit
03c501d9e3
@ -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;
|
||||
}
|
||||
|
2
vendor/trezor-crypto
vendored
2
vendor/trezor-crypto
vendored
@ -1 +1 @@
|
||||
Subproject commit c983afd72f40a8c65355af076afd9c132878e8a5
|
||||
Subproject commit d577410fc4a87262c107fb25657158f8f8ba720e
|
Loading…
Reference in New Issue
Block a user