2022-12-12 09:55:30 -05:00
|
|
|
//go:build !enterprise
|
|
|
|
|
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
package measurements
|
|
|
|
|
2023-05-04 04:51:28 -04:00
|
|
|
// 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),
|
|
|
|
}
|
2023-06-09 09:41:02 -04:00
|
|
|
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),
|
|
|
|
}
|
2023-05-04 04:51:28 -04:00
|
|
|
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),
|
|
|
|
}
|
2024-01-24 09:10:15 -05:00
|
|
|
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),
|
|
|
|
}
|
2023-05-04 04:51:28 -04:00
|
|
|
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),
|
2022-12-12 09:55:30 -05:00
|
|
|
}
|
2023-05-04 04:51:28 -04:00
|
|
|
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),
|
2024-02-21 06:59:07 -05:00
|
|
|
}
|
|
|
|
openstack_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),
|
2023-05-04 04:51:28 -04:00
|
|
|
}
|
|
|
|
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),
|
|
|
|
}
|
|
|
|
)
|