mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-23 14:39:40 -05:00
attestation: add Azure TDX variant
Only a stub for now.
This commit is contained in:
parent
5063b815f1
commit
336ba6bc34
@ -44,6 +44,7 @@ const (
|
||||
awsNitroTPM = "aws-nitro-tpm"
|
||||
awsSEVSNP = "aws-sev-snp"
|
||||
gcpSEVES = "gcp-sev-es"
|
||||
azureTDX = "azure-tdx"
|
||||
azureSEVSNP = "azure-sev-snp"
|
||||
azureTrustedLaunch = "azure-trustedlaunch"
|
||||
qemuVTPM = "qemu-vtpm"
|
||||
@ -206,6 +207,24 @@ func (GCPSEVES) Equal(other Getter) bool {
|
||||
return other.OID().Equal(GCPSEVES{}.OID())
|
||||
}
|
||||
|
||||
// AzureTDX holds the OID for Azure TDX CVMs.
|
||||
type AzureTDX struct{}
|
||||
|
||||
// OID returns the struct's object identifier.
|
||||
func (AzureTDX) OID() asn1.ObjectIdentifier {
|
||||
return asn1.ObjectIdentifier{1, 3, 9900, 4, 3}
|
||||
}
|
||||
|
||||
// String returns the string representation of the OID.
|
||||
func (AzureTDX) String() string {
|
||||
return azureTDX
|
||||
}
|
||||
|
||||
// Equal returns true if the other variant is also AzureTDX.
|
||||
func (AzureTDX) Equal(other Getter) bool {
|
||||
return other.OID().Equal(AzureTDX{}.OID())
|
||||
}
|
||||
|
||||
// AzureSEVSNP holds the OID for Azure SNP CVMs.
|
||||
type AzureSEVSNP struct{}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user