19 #ifndef ASYLO_IDENTITY_ATTESTATION_SGX_SGX_INTEL_ECDSA_QE_REMOTE_ASSERTION_VERIFIER_H_ 20 #define ASYLO_IDENTITY_ATTESTATION_SGX_SGX_INTEL_ECDSA_QE_REMOTE_ASSERTION_VERIFIER_H_ 24 #include <string_view> 28 #include "asylo/crypto/certificate_interface.h" 29 #include "asylo/identity/additional_authenticated_data_generator.h" 30 #include "asylo/identity/attestation/enclave_assertion_verifier.h" 31 #include "asylo/identity/attestation/sgx/sgx_intel_ecdsa_qe_remote_assertion_authority_config.pb.h" 32 #include "asylo/identity/enclave_assertion_authority.h" 33 #include "asylo/identity/identity.pb.h" 34 #include "asylo/identity/identity_acl.pb.h" 35 #include "asylo/identity/platform/sgx/internal/code_identity_constants.h" 36 #include "asylo/identity/platform/sgx/sgx_identity.pb.h" 37 #include "asylo/platform/common/static_map.h" 38 #include "asylo/util/mutex_guarded.h" 39 #include "asylo/util/status.h" 40 #include "asylo/util/statusor.h" 58 std::unique_ptr<AdditionalAuthenticatedDataGenerator> aad_generator);
79 std::unique_ptr<AdditionalAuthenticatedDataGenerator> generator)
80 : aad_generator(std::move(generator)) {}
82 bool is_initialized =
false;
83 std::vector<std::unique_ptr<CertificateInterface>> root_certificates;
84 std::unique_ptr<AdditionalAuthenticatedDataGenerator> aad_generator;
85 IdentityAclPredicate qe_identity_expectation;
88 Status CheckInitialization(absl::string_view caller)
const;
90 MutexGuarded<Members> members_;
bool IsInitialized() const override
Indicates whether this assertion authority has been initialized successfully via a call to Initialize...
SgxIntelEcdsaQeRemoteAssertionVerifier()
Constructs a new SgxIntelEcdsaQeAssertionVerifier that generates assertions suitable for use with EKE...
Status Initialize(const std::string &serialized_config) override
Initializes this assertion authority using the provided config.
ABSL_CONST_INIT const char kStatusMoveAssignmentMsg[]
StatusOr< bool > CanVerify(const AssertionOffer &offer) const override
Indicates whether the assertion offered in offer can be verified by this verifier.
EnclaveIdentityType IdentityType() const override
Gets the enclave identity type handled by this assertion authority.
Implementation of EnclaveAssertionVerifier that verifiers assertions generated by the Intel ECDSA quo...
Definition: sgx_intel_ecdsa_qe_remote_assertion_verifier.h:48
Status CreateAssertionRequest(AssertionRequest *request) const override
Creates an assertion request compatible with this verifier's identity type and authority type and pla...
SgxIntelEcdsaQeRemoteAssertionVerifier(std::unique_ptr< AdditionalAuthenticatedDataGenerator > aad_generator)
Constructs a new SgxIntelEcdsaQeAssertionVerifier that uses aad_generator to generate the expected ad...
Status Verify(const std::string &user_data, const Assertion &assertion, EnclaveIdentity *peer_identity) const override
Verifies an assertion that is compatible with this verifier's identity type and authority type...
std::string AuthorityType() const override
Gets the type of this assertion authority.