| 1 |
// Package internal contains marshalling structures for attest-tool and tests. |
| 2 |
package internal |
| 3 |
|
| 4 |
import ( |
| 5 |
"github.com/google/go-attestation/attest" |
| 6 |
"github.com/google/go-tpm/legacy/tpm2" |
| 7 |
) |
| 8 |
|
| 9 |
// Dump describes the layout of serialized information from the dump command. |
| 10 |
type Dump struct { |
| 11 |
Static struct { |
| 12 |
EKPem []byte |
| 13 |
} |
| 14 |
|
| 15 |
AK attest.AttestationParameters |
| 16 |
|
| 17 |
Quote struct { |
| 18 |
Nonce []byte |
| 19 |
Alg attest.HashAlg |
| 20 |
Quote []byte |
| 21 |
Signature []byte |
| 22 |
} |
| 23 |
|
| 24 |
Log struct { |
| 25 |
PCRs []attest.PCR |
| 26 |
PCRAlg tpm2.Algorithm |
| 27 |
Raw []byte // The measured boot log in binary form. |
| 28 |
} |
| 29 |
} |