Documentation
¶
Overview ¶
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
View Source
const ( SNPDefaultVmpl = corimgen.SNPDefaultVmpl SNPDefaultMeasurement = corimgen.SNPDefaultMeasurement )
Legacy SNP Defaults (re-exported from corimgen).
Variables ¶
View Source
var ( TDXDefaultMrSeam = corimgen.TDXDefaultMrSeam TDXDefaultMrTd = corimgen.TDXDefaultMrTd TDXDefaultRTMRs = corimgen.TDXDefaultRTMRs )
Legacy TDX Defaults (re-exported from corimgen).
Functions ¶
func GenerateCoRIM ¶
GenerateCoRIM generates a CoRIM attestation policy using veraison/corim. If SigningKey is provided in options, the CoRIM will be signed using COSE_Sign1.
Types ¶
type Options ¶
type Options struct {
Platform string // "snp" or "tdx"
Measurement string // Hex-encoded measurement
Product string // SNP processor product name
SVN uint64 // Security Version Number
Policy uint64 // SNP policy flags
RTMRs string // TDX RTMRs (comma-separated hex)
MrSeam string // TDX MRSEAM (hex)
HostData string // SNP host data (hex)
LaunchTCB uint64 // SNP minimum launch TCB
SigningKey crypto.Signer // Optional COSE signing key
}
Options defines the configuration for CoRIM generation. This is a wrapper around corimgen.Options for backward compatibility.
Click to show internal directories.
Click to hide internal directories.