Versions in this module Expand all Collapse all v2 v2.6.1 Nov 30, 2021 Changes in this version + func CalculateNEMSize(image []byte, bpm *bootpolicy.Manifest, km *key.Manifest, acm *tools.ACM) (bootpolicy.Size4K, error) + func DecryptPrivKey(data []byte, password string) (crypto.PrivateKey, error) + func FindAdditionalIBBs(imagepath string) ([]bootpolicy.IBBSegment, error) + func GenECCKey(curve int, password string, ...) error + func GenRSAKey(len int, password string, ...) error + func GenerateBPM(cbnto *Options, biosFilepath string) (*bootpolicy.Manifest, error) + func GetBPMPubHash(path string, hashAlg manifest.Algorithm) ([]key.Hash, error) + func ParseBPM(reader io.Reader) (*bootpolicy.Manifest, error) + func ParseFITEntries(image []byte) (bpm *fit.EntryBootPolicyManifestRecord, km *fit.EntryKeyManifestRecord, ...) + func ParseKM(reader io.Reader) (*key.Manifest, error) + func PrintCBnTStructures(image []byte) error + func ReadPubKey(path string) (crypto.PublicKey, error) + func SetKM(cbnto *Options) (*key.Manifest, error) + func StitchBPM(bpm *bootpolicy.Manifest, pubKey crypto.PublicKey, signature []byte) ([]byte, error) + func StitchFITEntries(biosFilename string, acm, bpm, km []byte) error + func StitchKM(km *key.Manifest, pubKey crypto.PublicKey, signature []byte) ([]byte, error) + func ValidateBPM(reader io.Reader) error + func ValidateKM(reader io.Reader) error + func WriteBPM(bpm *bootpolicy.Manifest) ([]byte, error) + func WriteCBnTStructures(image []byte, bpmFile, kmFile, acmFile *os.File) error + func WriteConfig(f *os.File, cbnto *Options) error + func WriteKM(km *key.Manifest) ([]byte, error) + type CMOSIoAddress struct + BitFieldPosition uint8 + BitFieldWidth uint8 + DataRegisterAddress uint16 + IndexOffset uint8 + IndexRegisterAddress uint16 + MediaType uint8 + type IbbSegment struct + Flags uint16 + Offset uint32 + Size uint32 + type KeyHash struct + Algorithm manifest.Algorithm + Hash string + Usage uint64 + type Options struct + BootPolicyManifest *bootpolicy.Manifest + KeyManifest *key.Manifest + func ParseConfig(filepath string) (*Options, error) + func ReadConfigFromBIOSImage(biosFilepath string, configFilepath *os.File) (*Options, error) + type Pcr0Data struct + ACMPolicyStatus uint64 + ACMSVN uint16 + ACMSignature []byte + BPMIBBDigest []byte + BPMSignature []byte + KMSignature []byte + type Pcr7Data struct + ACMKeyHash [32]byte + ACMPolicyStatus uint64 + ACMSVN uint16 + BPMKey [32]byte + BPMKeyHash []byte + type PowerDownRequest struct + ID uint64 + PDReqMedia []byte + Reserved uint8 + SizeOfData uint16 + Version uint8 + type TPMNvAddress struct + BitFieldPosition uint8 + BitFieldWidth uint8 + IndexOffset uint8 + MediaType uint8 + NVIndex uint32 Other modules containing this package github.com/orangecms/converged-security-suite