Skip to content

Commit

Permalink
Adding missing libcaliptra dpe command structs
Browse files Browse the repository at this point in the history
  • Loading branch information
nquarton committed Jul 26, 2024
1 parent 51ff0a8 commit f110b2a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libcaliptra/inc/caliptra_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ struct dpe_resp_hdr {
#endif

// GET_PROFILE
struct dpe_get_profile_cmd {
struct dpe_cmd_hdr cmd_hdr;
};

struct dpe_get_profile_response {
struct dpe_resp_hdr resp_hdr;
uint16_t profile_major_version;
Expand Down Expand Up @@ -347,6 +351,10 @@ struct dpe_destroy_context_cmd {
uint32_t flags;
};

struct dpe_destroy_context_response {
struct dpe_resp_hdr resp_hdr;
};

// GET_CERTIFICATE_CHAIN
struct dpe_get_certificate_chain_cmd {
struct dpe_cmd_hdr cmd_hdr;
Expand All @@ -365,6 +373,8 @@ struct caliptra_invoke_dpe_req {
struct caliptra_req_header hdr;
uint32_t data_size;
union {
struct dpe_cmd_hdr cmd_hdr;
struct dpe_get_profile_cmd get_profile_cmd;
struct dpe_initialize_context_cmd initialize_context_cmd;
struct dpe_derive_context_cmd derive_context_cmd;
struct dpe_certify_key_cmd certify_key_cmd;
Expand All @@ -380,12 +390,14 @@ struct caliptra_invoke_dpe_resp {
struct caliptra_resp_header cpl;
uint32_t data_size;
union {
struct dpe_resp_hdr resp_hdr;
struct dpe_get_profile_response get_profile_resp;
struct dpe_initialize_context_response initialize_context_resp;
struct dpe_derive_context_response derive_context_resp;
struct dpe_certify_key_response certify_key_resp;
struct dpe_sign_response sign_resp;
struct dpe_rotate_context_handle_response rotate_context_handle_resp;
struct dpe_destroy_context_response destroy_context_response;
struct dpe_get_certificate_chain_response get_certificate_chain_resp;
uint8_t data[sizeof(struct dpe_certify_key_response)];
};
Expand Down

0 comments on commit f110b2a

Please sign in to comment.