Implementation of EnclaveAssertionGenerator that generates assertions using the Intel ECDSA quoting enclave.
More...
#include <sgx_intel_ecdsa_qe_remote_assertion_generator.h>
Implementation of EnclaveAssertionGenerator that generates assertions using the Intel ECDSA quoting enclave.
These assertions attest, to a remote party, properties about both an enclave's code as well as the Intel platform properties.
◆ SgxIntelEcdsaQeRemoteAssertionGenerator() [1/2]
| asylo::SgxIntelEcdsaQeRemoteAssertionGenerator::SgxIntelEcdsaQeRemoteAssertionGenerator |
( |
| ) |
|
◆ SgxIntelEcdsaQeRemoteAssertionGenerator() [2/2]
| asylo::SgxIntelEcdsaQeRemoteAssertionGenerator::SgxIntelEcdsaQeRemoteAssertionGenerator |
( |
std::unique_ptr< AdditionalAuthenticatedDataGenerator > |
aad_generator, |
|
|
std::unique_ptr< asylo::sgx::IntelArchitecturalEnclaveInterface > |
intel_enclaves, |
|
|
std::unique_ptr< sgx::HardwareInterface > |
hardware_interface |
|
) |
| |
◆ ~SgxIntelEcdsaQeRemoteAssertionGenerator()
| asylo::SgxIntelEcdsaQeRemoteAssertionGenerator::~SgxIntelEcdsaQeRemoteAssertionGenerator |
( |
| ) |
|
|
overridedefault |
◆ AuthorityType()
| std::string asylo::SgxIntelEcdsaQeRemoteAssertionGenerator::AuthorityType |
( |
| ) |
const |
|
overridevirtual |
◆ CanGenerate()
| StatusOr<bool> asylo::SgxIntelEcdsaQeRemoteAssertionGenerator::CanGenerate |
( |
const AssertionRequest & |
request | ) |
const |
|
overridevirtual |
Indicates whether the assertion requested in request can be generated by this generator.
- Parameters
-
| request | A request to be fulfilled. |
- Returns
- True if the assertion specified in
request can be generated, and false if no errors occur during the operation but request cannot be fulfilled. Returns a non-OK Status if this generator is not yet initialized or if an internal error occurs while attempting the operation.
Implements asylo::EnclaveAssertionGenerator.
◆ CreateAssertionOffer()
| Status asylo::SgxIntelEcdsaQeRemoteAssertionGenerator::CreateAssertionOffer |
( |
AssertionOffer * |
offer | ) |
const |
|
overridevirtual |
Creates an assertion offer compatible with this generator's identity type and authority type and places the result in offer.
- Parameters
-
| [out] | offer | The generated offer. |
- Returns
- A Status indicating whether the offer was created. Returns a non-OK Status if this generator is not initialized or if an internal error occurs while attempting the operation.
Implements asylo::EnclaveAssertionGenerator.
◆ Generate()
| Status asylo::SgxIntelEcdsaQeRemoteAssertionGenerator::Generate |
( |
const std::string & |
user_data, |
|
|
const AssertionRequest & |
request, |
|
|
Assertion * |
assertion |
|
) |
| const |
|
overridevirtual |
Generates an assertion that satisfies the given request, if request is compatible with this generator's identity type and authority type.
The caller cannot make any assumptions about the contents of assertion if generation fails.
- Parameters
-
| user_data | User-provided binding data. |
| request | A request to fulfill. |
| [out] | assertion | The generated assertion. |
- Returns
- A Status indicating whether an assertion was generated successfully. Returns a non-OK Status if the generator is not initialized or if an internal error occurs while attempting the operation.
Implements asylo::EnclaveAssertionGenerator.
◆ IdentityType()
| EnclaveIdentityType asylo::SgxIntelEcdsaQeRemoteAssertionGenerator::IdentityType |
( |
| ) |
const |
|
overridevirtual |
Gets the enclave identity type handled by this assertion authority.
- Returns
- The identity type handled by this authority.
Implements asylo::EnclaveAssertionAuthority.
◆ Initialize()
| Status asylo::SgxIntelEcdsaQeRemoteAssertionGenerator::Initialize |
( |
const std::string & |
config | ) |
|
|
overridevirtual |
Initializes this assertion authority using the provided config.
- Parameters
-
| config | A config with which to initialize this authority. |
- Returns
- A Status indicating whether initialization succeeded.
Implements asylo::EnclaveAssertionAuthority.
◆ IsInitialized()
| bool asylo::SgxIntelEcdsaQeRemoteAssertionGenerator::IsInitialized |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file: