Open Enclave  0.18.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 
145  const oe_uuid_t* format_id,
146  const unsigned char* subject_name,
147  uint8_t* private_key,
148  size_t private_key_size,
149  uint8_t* public_key,
150  size_t public_key_size,
151  uint8_t** output_certificate,
152  size_t* output_certificate_size);
153 
185  const oe_uuid_t* format_id,
186  const unsigned char* subject_name,
187  uint8_t* private_key,
188  size_t private_key_size,
189  uint8_t* public_key,
190  size_t public_key_size,
191  const void* optional_parameters,
192  size_t optional_parameters_size,
193  uint8_t** output_certificate,
194  size_t* output_certificate_size);
195 
208 oe_result_t oe_free_evidence(uint8_t* evidence_buffer);
209 
222 oe_result_t oe_free_endorsements(uint8_t* endorsements_buffer);
223 
240 
241 OE_EXTERNC_END
242 
243 #endif // _OE_HOST_H
244 
245 #endif /* _OE_ATTESTATION_ATTESTER_H */
types.h
oe_attester_shutdown
oe_result_t oe_attester_shutdown(void)
oe_attester_shutdown
_oe_uuid_t
Struct containing the definition for an UUID.
Definition: evidence.h:55
oe_free_endorsements
oe_result_t oe_free_endorsements(uint8_t *endorsements_buffer)
oe_free_endorsements
oe_get_attestation_certificate_with_evidence
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_certificate, size_t *output_certificate_size)
oe_get_attestation_certificate_with_evidence
oe_attester_initialize
oe_result_t oe_attester_initialize(void)
oe_attester_initialize
oe_free_evidence
oe_result_t oe_free_evidence(uint8_t *evidence_buffer)
oe_free_evidence
result.h
oe_get_attestation_certificate_with_evidence_v2
oe_result_t oe_get_attestation_certificate_with_evidence_v2(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, const void *optional_parameters, size_t optional_parameters_size, uint8_t **output_certificate, size_t *output_certificate_size)
oe_get_attestation_certificate_with_evidence_v2
evidence.h
oe_get_evidence
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
oe_result_t
enum _oe_result oe_result_t
This enumeration type defines return codes for Open Enclave functions.
oe_attester_select_format
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