Skip to content

Commit

Permalink
Align max path length with sdk value
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Oct 12, 2022
1 parent 580bfaa commit 987ebc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static void get_private_key(cx_ecfp_private_key_t *privateKey,

static void get_private_key_with_seed(cx_ecfp_private_key_t *privateKey,
const uint32_t *derivationPath,
uint8_t pathLength) {
size_t pathLength) {
uint8_t privateKeyData[PRIVATEKEY_LENGTH];
BEGIN_TRY {
TRY {
Expand Down Expand Up @@ -97,7 +97,7 @@ void get_public_key(uint8_t *publicKeyArray, const uint32_t *derivationPath, siz
int read_derivation_path(const uint8_t *data_buffer,
size_t data_size,
uint32_t *derivation_path,
uint32_t *derivation_path_length) {
size_t *derivation_path_length) {
if (!data_buffer || !derivation_path || !derivation_path_length) {
return ApduReplySdkInvalidParameter;
}
Expand Down
4 changes: 2 additions & 2 deletions src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void get_private_key(cx_ecfp_private_key_t *privateKey,

void get_private_key_with_seed(cx_ecfp_private_key_t *privateKey,
const uint32_t *derivationPath,
uint8_t pathLength);
size_t pathLength);

uint8_t set_result_sign_message(void);

Expand All @@ -53,7 +53,7 @@ uint8_t set_result_sign_message(void);
int read_derivation_path(const uint8_t *data_buffer,
size_t data_size,
uint32_t *derivation_path,
uint32_t *derivation_path_length);
size_t *derivation_path_length);

void sendResponse(uint8_t tx, bool approve);

Expand Down

0 comments on commit 987ebc4

Please sign in to comment.