Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
feat(auth): refactor attestation and add for auth
Browse files Browse the repository at this point in the history
  • Loading branch information
longtomjr committed May 13, 2021
1 parent 8615463 commit fa50cfd
Show file tree
Hide file tree
Showing 12 changed files with 428 additions and 113 deletions.
36 changes: 18 additions & 18 deletions codegen/data_enclave/bindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,6 @@
*/
#define DATA_UPLOAD_RESPONSE_LEN ((24 + 16) + 32)

typedef enum CreateReportResult_Tag {
Success,
Sgx,
FailedToGetPublicKey,
FailedEncodePublicKey,
} CreateReportResult_Tag;

typedef struct CreateReportResult {
CreateReportResult_Tag tag;
union {
struct {
sgx_status_t sgx;
};
};
} CreateReportResult;

typedef uint8_t EnclaveHeldData[ENCLAVE_HELD_DATA_SIZE];

typedef struct DataUploadResponse {
uint8_t ciphertext[DATA_UPLOAD_RESPONSE_LEN];
uint8_t nonce[24];
Expand Down Expand Up @@ -93,3 +75,21 @@ typedef struct UploadMetadata {
uint8_t uploader_pub_key[32];
uint8_t nonce[24];
} UploadMetadata;

typedef enum CreateReportResult_Tag {
Success,
Sgx,
FailedToGetPublicKey,
FailedEncodePublicKey,
} CreateReportResult_Tag;

typedef struct CreateReportResult {
CreateReportResult_Tag tag;
union {
struct {
sgx_status_t sgx;
};
};
} CreateReportResult;

typedef uint8_t EnclaveHeldData[ENCLAVE_HELD_DATA_SIZE];
Loading

0 comments on commit fa50cfd

Please sign in to comment.