mirror of
https://github.com/google/go-attestation.git
synced 2024-12-20 21:43:16 +00:00
23 lines
597 B
Go
23 lines
597 B
Go
|
package attest
|
||
|
|
||
|
import (
|
||
|
"io"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
testLog = []byte{0x0, 0x0, 0x0, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
||
|
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
||
|
0x0, 0x0, 0x21, 0x0, 0x0, 0x0, 0x53, 0x70, 0x65, 0x63, 0x20, 0x49, 0x44,
|
||
|
0x20, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x30, 0x33, 0x0, 0x0, 0x0, 0x0, 0x0,
|
||
|
0x0, 0x2, 0x0, 0x2, 0x1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x20, 0x0, 0x0}
|
||
|
)
|
||
|
|
||
|
type fakeCmdChannel struct {
|
||
|
io.ReadWriteCloser
|
||
|
}
|
||
|
|
||
|
// MeasurementLog implements CommandChannelTPM20.
|
||
|
func (cc *fakeCmdChannel) MeasurementLog() ([]byte, error) {
|
||
|
return testLog, nil
|
||
|
}
|