diff --git a/include/os_seed.h b/include/os_seed.h index 4941b71e..da35f4c5 100644 --- a/include/os_seed.h +++ b/include/os_seed.h @@ -58,11 +58,13 @@ SYSCALL PERMISSION(APPLICATION_FLAG_BOLOS_UX) void os_perso_set_words(const unsi PLENGTH(length), unsigned int length); SYSCALL PERMISSION(APPLICATION_FLAG_BOLOS_UX) void os_perso_finalize(void); -#if defined(HAVE_RECOVER) + SYSCALL PERMISSION(APPLICATION_FLAG_BOLOS_UX) void os_perso_master_seed(uint8_t *master_seed PLENGTH(length), size_t length, os_action_t action); + +#if defined(HAVE_RECOVER) SYSCALL PERMISSION(APPLICATION_FLAG_BOLOS_UX) void os_perso_recover_state(uint8_t *state, os_action_t action); #endif // HAVE_RECOVER diff --git a/include/syscalls.h b/include/syscalls.h index ad6a8be5..c0fa51f5 100644 --- a/include/syscalls.h +++ b/include/syscalls.h @@ -130,8 +130,8 @@ #define SYSCALL_os_perso_derive_node_with_seed_key_ID 0x080000a6 #define SYSCALL_os_perso_derive_eip2333_ID 0x040000a7 -#ifdef HAVE_RECOVER #define SYSCALL_os_perso_master_seed_ID 0x02000052 +#ifdef HAVE_RECOVER #define SYSCALL_os_perso_recover_state_ID 0x02000054 #endif // HAVE_RECOVER diff --git a/src/syscalls.c b/src/syscalls.c index 6274eec0..14306ea7 100644 --- a/src/syscalls.c +++ b/src/syscalls.c @@ -1244,7 +1244,6 @@ unsigned char os_perso_get_seed_algorithm(void) } #endif // HAVE_VAULT_RECOVERY_ALGO -#if defined(HAVE_RECOVER) void os_perso_master_seed(uint8_t *master_seed, size_t length, os_action_t action) { unsigned int parameters[3]; @@ -1255,6 +1254,7 @@ void os_perso_master_seed(uint8_t *master_seed, size_t length, os_action_t actio return; } +#if defined(HAVE_RECOVER) void os_perso_recover_state(uint8_t *state, os_action_t action) { unsigned int parameters[2];