mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-27 08:29:33 -05:00
e350ca0f57
* Implement Azure TDX attestation primitives * Add default measurements and claims for Azure TDX * Enable Constellation on Azure TDX --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
84 lines
4.5 KiB
Go
84 lines
4.5 KiB
Go
//go:build !enterprise
|
|
|
|
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
package measurements
|
|
|
|
// revive:disable:var-naming
|
|
var (
|
|
aws_AWSNitroTPM = M{
|
|
4: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
8: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
9: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
11: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
12: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
13: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
uint32(PCRIndexClusterID): WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
}
|
|
aws_AWSSEVSNP = M{
|
|
4: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
8: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
9: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
11: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
12: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
13: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
uint32(PCRIndexClusterID): WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
}
|
|
azure_AzureSEVSNP = M{
|
|
4: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
8: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
9: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
11: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
12: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
13: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
uint32(PCRIndexClusterID): WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
}
|
|
azure_AzureTDX = M{
|
|
4: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
8: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
9: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
11: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
12: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
13: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
uint32(PCRIndexClusterID): WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
}
|
|
azure_AzureTrustedLaunch = M{
|
|
4: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
8: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
9: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
11: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
12: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
13: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
uint32(PCRIndexClusterID): WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
}
|
|
gcp_GCPSEVES = M{
|
|
4: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
8: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
9: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
11: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
12: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
13: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
uint32(PCRIndexClusterID): WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
}
|
|
qemu_QEMUTDX = M{
|
|
0: PlaceHolderMeasurement(TDXMeasurementLength),
|
|
1: PlaceHolderMeasurement(TDXMeasurementLength),
|
|
2: PlaceHolderMeasurement(TDXMeasurementLength),
|
|
uint32(TDXIndexClusterID): WithAllBytes(0x00, Enforce, TDXMeasurementLength),
|
|
4: PlaceHolderMeasurement(TDXMeasurementLength),
|
|
}
|
|
qemu_QEMUVTPM = M{
|
|
4: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
8: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
9: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
11: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
12: PlaceHolderMeasurement(PCRMeasurementLength),
|
|
13: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
uint32(PCRIndexClusterID): WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
|
}
|
|
)
|