Versions in this module Expand all Collapse all v0 v0.0.2 Jan 6, 2025 Changes in this version + const FakeEventMR + const FakeEventType + func VerifyDigests(c Content, digestMap map[crypto.Hash][]byte) error + type CEL interface + AppendEvent func(Content, []crypto.Hash, int, MRExtender) error + EncodeCEL func(*bytes.Buffer) error + MRType func() MRType + Records func() []Record + Replay func(register.MRBank) error + func DecodeToCEL(buf *bytes.Buffer) (CEL, error) + func NewConfComputeMR() CEL + func NewPCR() CEL + type Content interface + GenerateDigest func(crypto.Hash) ([]byte, error) + TLV func() (TLV, error) + type FakeTlv struct + EventContent []byte + EventType FakeType + func (f FakeTlv) GenerateDigest(hashAlgo crypto.Hash) ([]byte, error) + func (f FakeTlv) TLV() (TLV, error) + type FakeType uint8 + const FakeEvent1 + const FakeEvent2 + type MRExtender func(crypto.Hash, int, []byte) error + type MRType TopLevelEventType + const CCMRType + const PCRType + type Record struct + Content TLV + Digests map[crypto.Hash][]byte + Index uint8 + IndexType uint8 + RecNum uint64 + func (r *Record) EncodeCELR(buf *bytes.Buffer) error + type TLV struct + Type uint8 + Value []byte + func (t *TLV) UnmarshalBinary(data []byte) error + func (t TLV) IsFakeTLV() bool + func (t TLV) MarshalBinary() (data []byte, err error) + func (t TLV) ParseToFakeTlv() (FakeTlv, error) + type TopLevelEventType uint8