Skip to content

Commit

Permalink
Add endorsment revoke prototypes in os_endorsement.h
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeBonnaz committed Sep 5, 2023
1 parent 701c243 commit 35be215
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/os_endorsement.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
/* - ENDORSEMENT FEATURE - */
/* ----------------------------------------------------------------------- */

typedef enum endorsement_revoke_id_e {
ENDORSEMENT_REVOKE_ID_ALL = 0,
ENDORSEMENT_REVOKE_ID_SLOT1 = 1,
ENDORSEMENT_REVOKE_ID_SLOT2 = 2,
ENDORSEMENT_REVOKE_ID_LAST = 3,
} endorsement_revoke_id_t;

#define ENDORSEMENT_MAX_ASN1_LENGTH (1 + 1 + 2 * (1 + 1 + 33))

SYSCALL unsigned int os_endorsement_get_code_hash(unsigned char* buffer PLENGTH(32));
Expand All @@ -17,3 +24,7 @@ SYSCALL unsigned int os_endorsement_key1_sign_data(unsigned char* src PLENGTH(sr
SYSCALL unsigned int os_endorsement_key2_derive_sign_data(unsigned char* src PLENGTH(srcLength), unsigned int srcLength, unsigned char* signature PLENGTH(ENDORSEMENT_MAX_ASN1_LENGTH));

SYSCALL unsigned int os_endorsement_get_metadata(unsigned char index, unsigned char* buffer PLENGTH(8));

SYSCALL void os_endorsement_revoke_slot1(void);
SYSCALL void os_endorsement_revoke_slot2(void);
SYSCALL void os_endorsement_revoke_all(void);

0 comments on commit 35be215

Please sign in to comment.