12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #ifndef _TSEAL_INTERNAL_H_
- #define _TSEAL_INTERNAL_H_
- #include <stdint.h>
- #include "sgx_tseal.h"
- #define SGX_MISCSEL_EXINFO 0x00000001
- #define TSEAL_DEFAULT_MISCMASK (~SGX_MISCSEL_EXINFO)
- #ifdef __cplusplus
- extern "C" {
- #endif
- sgx_status_t sgx_seal_data_iv(const uint32_t additional_MACtext_length,
- const uint8_t *p_additional_MACtext, const uint32_t text2encrypt_length,
- const uint8_t *p_text2encrypt, const uint8_t *p_payload_iv,
- const sgx_key_request_t* p_key_request, sgx_sealed_data_t *p_sealed_data);
- sgx_status_t sgx_unseal_data_helper(const sgx_sealed_data_t *p_sealed_data, uint8_t *p_additional_MACtext,
- uint32_t additional_MACtext_length, uint8_t *p_decrypted_text,
- uint32_t decrypted_text_length);
- #ifdef __cplusplus
- }
- #endif
- #endif
|