Asylo
Namespaces | Enumerations | Functions
sgx_identity_util.h File Reference
#include <string>
#include "asylo/identity/identity.pb.h"
#include "asylo/identity/platform/sgx/sgx_identity.pb.h"
#include "asylo/util/statusor.h"
Include dependency graph for sgx_identity_util.h:

Go to the source code of this file.

Namespaces

 asylo
 

Enumerations

enum  asylo::SgxIdentityMatchSpecOptions { asylo::SgxIdentityMatchSpecOptions::DEFAULT, asylo::SgxIdentityMatchSpecOptions::STRICT_LOCAL, asylo::SgxIdentityMatchSpecOptions::STRICT_REMOTE }
 This enum defines a set of recommended match specs. More...
 

Functions

SgxIdentity asylo::GetSelfSgxIdentity ()
 Returns the current enclave's identity. More...
 
StatusOr< SgxIdentityMatchSpec > asylo::CreateSgxIdentityMatchSpec (SgxIdentityMatchSpecOptions options)
 Returns an SgxIdentityMatchSpec corresponding to options on success or a non-OK Status on failure. More...
 
StatusOr< SgxIdentityExpectation > asylo::CreateSgxIdentityExpectation (SgxIdentity identity, SgxIdentityMatchSpec match_spec)
 Returns an SgxIdentityExpectation formed from identity and match_spec, or returns a non-OK Status if either are invalid or if they are incompatible with each other. More...
 
StatusOr< SgxIdentityExpectation > asylo::CreateSgxIdentityExpectation (SgxIdentity identity, SgxIdentityMatchSpecOptions options)
 Returns an SgxIdentityExpectation formed from identity and the match spec corresponding to options, or returns a non-OK Status if either are invalid or if they are incompatible with each other. More...
 
bool asylo::IsValidSgxIdentity (const SgxIdentity &identity)
 Returns whether identity is valid. More...
 
bool asylo::IsValidSgxIdentityMatchSpec (const SgxIdentityMatchSpec &match_spec)
 Returns whether match_spec is valid. More...
 
bool asylo::IsValidSgxIdentityExpectation (const SgxIdentityExpectation &expectation)
 Returns whether expectation is valid. More...
 
StatusOr< SgxIdentity > asylo::ParseSgxIdentity (const EnclaveIdentity &generic_identity)
 Parses and validates generic_identity, returning an SgxIdentity on success or a non-OK Status on failure. More...
 
StatusOr< SgxIdentityMatchSpec > asylo::ParseSgxIdentityMatchSpec (const std::string &generic_match_spec)
 Parses and validates generic_match_spec, returning an SgxIdentityMatchSpec on success or a non-OK Status on failure. More...
 
StatusOr< SgxIdentityExpectation > asylo::ParseSgxIdentityExpectation (const EnclaveIdentityExpectation &generic_expectation)
 Parses and validates generic_expectation, returning an SgxIdentityExpectation on success or a non-OK Status on failure. More...
 
StatusOr< EnclaveIdentity > asylo::SerializeSgxIdentity (const SgxIdentity &sgx_identity)
 Serializes sgx_identity, returning an EnclaveIdentity on success or a non-OK Status on failure. More...
 
StatusOr< std::string > asylo::SerializeSgxIdentityMatchSpec (const SgxIdentityMatchSpec &sgx_match_spec)
 Serializes sgx_match_spec, returning a string on success or a non-OK Status on failure. More...
 
StatusOr< EnclaveIdentityExpectation > asylo::SerializeSgxIdentityExpectation (const SgxIdentityExpectation &sgx_expectation)
 Serializes sgx_expectation, returning an EnclaveIdentityExpectation on success or a non-OK Status on failure. More...