Open Enclave  0.14.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 
162  const oe_uuid_t* format_id,
163  const uint8_t* evidence_buffer,
164  size_t evidence_buffer_size,
165  const uint8_t* endorsements_buffer,
166  size_t endorsements_buffer_size,
167  const oe_policy_t* policies,
168  size_t policies_size,
169  oe_claim_t** claims,
170  size_t* claims_length);
171 
180  oe_claim_t* claims,
181  size_t claims_length,
182  void* arg);
183 
207  uint8_t* cert_in_der,
208  size_t cert_in_der_len,
209  oe_verify_claims_callback_t claim_verify_callback,
210  void* arg);
211 
224 oe_result_t oe_free_claims(oe_claim_t* claims, size_t claims_length);
225 
241 
242 OE_EXTERNC_END
243 
244 #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:163
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
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:179
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 *cert_in_der, size_t cert_in_der_len, oe_verify_claims_callback_t claim_verify_callback, void *arg)
oe_verify_attestation_certificate_with_evidence