Open Enclave  0.17.0
verifier.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_VERIFIER_H
13 #define _OE_ATTESTATION_VERIFIER_H
14 
17 #include <openenclave/bits/types.h>
18 
19 OE_EXTERNC_BEGIN
20 
36 
55  oe_uuid_t** format_ids,
56  size_t* format_ids_length);
57 
70 
90  const oe_uuid_t* format_id,
91  uint8_t** settings,
92  size_t* settings_size);
93 
106 
165  const oe_uuid_t* format_id,
166  const uint8_t* evidence_buffer,
167  size_t evidence_buffer_size,
168  const uint8_t* endorsements_buffer,
169  size_t endorsements_buffer_size,
170  const oe_policy_t* policies,
171  size_t policies_size,
172  oe_claim_t** claims,
173  size_t* claims_length);
174 
183  oe_claim_t* claims,
184  size_t claims_length,
185  void* arg);
186 
213  uint8_t* certificate_in_der,
214  size_t certificate_in_der_size,
215  oe_verify_claims_callback_t claim_verify_callback,
216  void* arg);
217 
247  uint8_t* certificate_in_der,
248  size_t certificate_in_der_size,
249  uint8_t* endorsements_buffer,
250  size_t endorsements_buffer_size,
251  oe_policy_t* policies,
252  size_t policies_size,
253  oe_claim_t** claims,
254  size_t* claims_length);
255 
268 oe_result_t oe_free_claims(oe_claim_t* claims, size_t claims_length);
269 
285 
286 OE_EXTERNC_END
287 
288 #endif /* _OE_ATTESTATION_VERIFIER_H */
oe_result_t oe_verifier_shutdown(void)
oe_verifier_shutdown
Generic struct for defining policy for the attestation plugins.
Definition: evidence.h:175
This file defines the types used by the OE SDK.
oe_result_t oe_verifier_get_format_settings(const oe_uuid_t *format_id, uint8_t **settings, size_t *settings_size)
oe_verifier_get_format_settings
oe_result_t oe_verify_attestation_certificate_with_evidence_v2(uint8_t *certificate_in_der, size_t certificate_in_der_size, uint8_t *endorsements_buffer, size_t endorsements_buffer_size, oe_policy_t *policies, size_t policies_size, oe_claim_t **claims, size_t *claims_length)
oe_verify_attestation_certificate_with_evidence_v2
This file defines structures and options for SGX evidence generation and verification.
oe_result_t oe_verify_evidence(const oe_uuid_t *format_id, const uint8_t *evidence_buffer, size_t evidence_buffer_size, const uint8_t *endorsements_buffer, size_t endorsements_buffer_size, const oe_policy_t *policies, size_t policies_size, oe_claim_t **claims, size_t *claims_length)
oe_verify_evidence
oe_result_t(* oe_verify_claims_callback_t)(oe_claim_t *claims, size_t claims_length, void *arg)
Type definition for a claims verification callback.
Definition: verifier.h:182
Claims struct used for claims parameters for the attestation plugins.
Definition: evidence.h:51
This file defines Open Enclave return codes (results).
enum _oe_result oe_result_t
This enumeration type defines return codes for Open Enclave functions.
Struct containing the definition for an UUID.
Definition: evidence.h:43
oe_result_t oe_verifier_free_formats(oe_uuid_t *format_ids)
oe_verifier_free_formats
oe_result_t oe_verifier_get_formats(oe_uuid_t **format_ids, size_t *format_ids_length)
oe_verifier_get_formats
oe_result_t oe_verifier_initialize(void)
oe_verifier_initialize
oe_result_t oe_free_claims(oe_claim_t *claims, size_t claims_length)
oe_free_claims
oe_result_t oe_verifier_free_format_settings(uint8_t *settings)
oe_verifier_free_format_settings
oe_result_t oe_verify_attestation_certificate_with_evidence(uint8_t *certificate_in_der, size_t certificate_in_der_size, oe_verify_claims_callback_t claim_verify_callback, void *arg)
oe_verify_attestation_certificate_with_evidence