1
0
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:
Jochen Hoenicke 2016-04-20 15:39:15 +02:00
parent 56238e63fc
commit 03c501d9e3
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}

@ -1 +1 @@
Subproject commit c983afd72f40a8c65355af076afd9c132878e8a5
Subproject commit d577410fc4a87262c107fb25657158f8f8ba720e