Skip to main content

Module vmgs

Module vmgs 

Source
Expand description

Include modules that define the data structures of VMGS entries.

Structs§

DekKp
DEK key protector entry.
GspKp
GSP key protector entry.
GuestSecretKey
The data format of the FileId::GUEST_SECRET_KEY entry in the VMGS file.
HardwareKeyProtector
The data format of the FileId::HW_KEY_PROTECTOR entry in the VMGS file.
HardwareKeyProtectorHeader
The header of HardwareKeyProtector.
HardwareKeyProtectorHeaderV3
Version-3 header. Shares the version/length prefix with HardwareKeyProtectorHeader so the version can be read first, then carries a TEE-tagged SVN blob bound into the derived key.
HardwareKeyProtectorV3
Version-3 data format of the FileId::HW_KEY_PROTECTOR entry.
KeyProtector
The data format of the FileId::KEY_PROTECTOR entry in the VMGS file.
KeyProtectorById
The data format of the host/fabric-provided key protector.
SecurityProfile
The data format of the FileId::ATTEST entry in the VMGS file.

Constants§

AES_CBC_IV_LENGTH
AES-CBC IV size
AES_CBC_KEY_LENGTH
AES-CBC key size
AES_GCM_KEY_LENGTH
AES-GCM key size
AGENT_DATA_MAX_SIZE
Maximum size of the agent_data.
DEK_BUFFER_SIZE
DEK buffer size
GSP_BUFFER_SIZE
GSP buffer size
GUEST_SECRET_KEY_MAX_SIZE
Maximum size of the guest_secret_key.
HMAC_SHA_256_KEY_LENGTH
HMAC-SHA-256 key size
HW_KEY_PROTECTOR_CURRENT_VERSION
HW_KEY_PROTECTOR_SIZE
The size of the FileId::HW_KEY_PROTECTOR entry in the VMGS file.
HW_KEY_PROTECTOR_SVN_SIZE
Size of the TEE-specific SVN blob in HardwareKeyProtectorHeaderV3.
HW_KEY_PROTECTOR_TEE_TYPE_SNP
TEE tag stored in HardwareKeyProtectorHeaderV3::tee_type.
HW_KEY_PROTECTOR_TEE_TYPE_TDX
TEE tag stored in HardwareKeyProtectorHeaderV3::tee_type.
HW_KEY_PROTECTOR_V3_SIZE
The size of a version-3 FileId::HW_KEY_PROTECTOR entry.
HW_KEY_PROTECTOR_VERSION_1
VMGS hardware key protector entry that includes the metadata of local hardware sealing with AES-CBC-HMAC-SHA256.
HW_KEY_PROTECTOR_VERSION_2
HW_KEY_PROTECTOR_VERSION_3
Version 3 is a unified, TEE-tagged format used for all newly-created protectors (SNP and TDX). It records the raw report SVNs so the derived key can bind every SVN the TEE mixes in (for TDX, both TEE_TCB_SVN and CPU_SVN) rather than a lossy u64. v2 is retained read-only for legacy SNP protectors.
KEY_PROTECTOR_SIZE
Size of the FileId::KEY_PROTECTOR VMGS file entry.
NUMBER_KP
Number of the key protector entries. One for ingress, and one for egress