Open Enclave  0.13.0
attester.h
Go to the documentation of this file.
1 // Copyright (c) Open Enclave SDK contributors.
2 // Licensed under the MIT License.
3 
12 #ifndef _OE_ATTESTATION_ATTESTER_H
13 #define _OE_ATTESTATION_ATTESTER_H
14 
15 #ifdef _OE_HOST_H
16 
17 #error "The header attester.h is only available for the enclave."
18 
19 #else // _OE_HOST_H
20 
23 #include <openenclave/bits/types.h>
24 
25 OE_EXTERNC_BEGIN
26 
32 #define OE_EVIDENCE_FLAGS_EMBED_FORMAT_ID 0x00000001
33 
50 
71  const oe_uuid_t* format_ids,
72  size_t format_ids_length,
73  oe_uuid_t* selected_format_id);
74 
107  const oe_uuid_t* format_id,
108  uint32_t flags,
109  const void* custom_claims_buffer,
110  size_t custom_claims_buffer_size,
111  const void* optional_parameters,
112  size_t optional_parameters_size,
113  uint8_t** evidence_buffer,
114  size_t* evidence_buffer_size,
115  uint8_t** endorsements_buffer,
116  size_t* endorsements_buffer_size);
117 
143  const oe_uuid_t* format_id,
144  const unsigned char* subject_name,
145  uint8_t* private_key,
146  size_t private_key_size,
147  uint8_t* public_key,
148  size_t public_key_size,
149  uint8_t** output_cert,
150  size_t* output_cert_size);
151 
164 oe_result_t oe_free_evidence(uint8_t* evidence_buffer);
165 
178 oe_result_t oe_free_endorsements(uint8_t* endorsements_buffer);
179 
196 
197 OE_EXTERNC_END
198 
199 #endif // _OE_HOST_H
200 
201 #endif /* _OE_ATTESTATION_ATTESTER_H */
oe_result_t oe_attester_initialize(void)
oe_attester_initialize
This file defines the types used by the OE SDK.
oe_result_t oe_free_evidence(uint8_t *evidence_buffer)
oe_free_evidence
This file defines structures and options for SGX evidence generation and verification.
oe_result_t oe_free_endorsements(uint8_t *endorsements_buffer)
oe_free_endorsements
This file defines Open Enclave return codes (results).
oe_result_t oe_get_evidence(const oe_uuid_t *format_id, uint32_t flags, const void *custom_claims_buffer, size_t custom_claims_buffer_size, const void *optional_parameters, size_t optional_parameters_size, uint8_t **evidence_buffer, size_t *evidence_buffer_size, uint8_t **endorsements_buffer, size_t *endorsements_buffer_size)
oe_get_evidence
enum _oe_result oe_result_t
This enumeration type defines return codes for Open Enclave functions.
oe_result_t oe_attester_select_format(const oe_uuid_t *format_ids, size_t format_ids_length, oe_uuid_t *selected_format_id)
oe_attester_select_format
Struct containing the definition for an UUID.
Definition: evidence.h:43
oe_result_t oe_attester_shutdown(void)
oe_attester_shutdown
oe_result_t oe_get_attestation_certificate_with_evidence(const oe_uuid_t *format_id, const unsigned char *subject_name, uint8_t *private_key, size_t private_key_size, uint8_t *public_key, size_t public_key_size, uint8_t **output_cert, size_t *output_cert_size)
oe_get_attestation_certificate_with_evidence