File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -298,3 +298,6 @@ WARN_UNUSED_RESULT static inline cx_err_t os_derive_eip2333_no_throw(
298
298
// return BOLOS_TRUE if the seed has been generated, return BOLOS_FALSE otherwise.
299
299
SYSCALL bolos_bool_t os_perso_seed_cookie (unsigned char * seed_cookie PLENGTH (CX_SHA512_SIZE ));
300
300
#endif // HAVE_SEED_COOKIE
301
+
302
+ SYSCALL bolos_err_t os_perso_get_master_key_identifier (uint8_t * identifier ,
303
+ size_t identifier_length );
Original file line number Diff line number Diff line change 139
139
#define SYSCALL_os_perso_seed_cookie_ID 0x010000a8
140
140
#endif // HAVE_SEED_COOKIE
141
141
142
+ #define SYSCALL_os_perso_get_master_key_identifier_ID 0x02000055
143
+
142
144
#define SYSCALL_ENDORSEMENT_get_code_hash_ID 0x01000055
143
145
#define SYSCALL_ENDORSEMENT_get_public_key_ID 0x03000056
144
146
#define SYSCALL_ENDORSEMENT_get_public_key_certificate_ID 0x03000057
Original file line number Diff line number Diff line change @@ -1370,6 +1370,14 @@ bolos_bool_t os_perso_seed_cookie(unsigned char *seed_cookie)
1370
1370
}
1371
1371
#endif // HAVE_SEED_COOKIE
1372
1372
1373
+ bolos_err_t os_perso_get_master_key_identifier (uint8_t * identifier , size_t identifier_length )
1374
+ {
1375
+ unsigned int parameters [2 ];
1376
+ parameters [0 ] = (unsigned int ) identifier ;
1377
+ parameters [1 ] = (unsigned int ) identifier_length ;
1378
+ return (bolos_err_t ) SVC_Call (SYSCALL_os_perso_get_master_key_identifier_ID , parameters );
1379
+ }
1380
+
1373
1381
#if defined(HAVE_LEDGER_PKI )
1374
1382
bolos_err_t os_pki_load_certificate (uint8_t expected_key_usage ,
1375
1383
uint8_t * certificate ,
You can’t perform that action at this time.
0 commit comments