go-attestation/attest
Aditya Prakash 63c5188962
Export InvalidPCRs field in ReplayError (#189)
* Export InvalidPCRs field in ReplayError

In order to retrieve the Invalid PCRs which couldn't be replayed against the Event log, we need this field to be exported as this gives the exact and true information. Replay error events will give all the events, but doesn't give the exact PCR index which doesn't get replayed. 

Following is the test to extend PCR 7 and verify the PCRs 7,8,9 against the Event log. Output:
```
event log failed to verify: the following registers failed to replay: [7]
ReplayError Events:=[107]
Replay Error Events PCR indexes=[0 7 2 3 6 9 8 1 4 5]
```

* Add Comment to the exported field
2020-11-30 11:56:55 -08:00
..
attest-tool Implement self-test mode into attest-tool. (#137) 2019-11-08 09:52:59 -08:00
internal Begin implementing extraction of windows info from the event log (#167) 2020-06-01 17:35:23 -07:00
testdata Implement workaround for secureboot authority events from shim (#158) 2020-05-01 14:20:54 -07:00
activation_test.go Rename AIK to AK everywhere 2019-10-09 08:56:19 +11:00
activation.go attest: update go-tpm and switch hash method 2019-10-18 10:39:55 -04:00
attest_fuzz.go Enable ParseAKPublic & ParseEKCertificate for fuzzing. (#141) 2019-12-04 15:04:06 -08:00
attest_simulated_tpm20_test.go Split linuxTPM -> {trousersTPM,wrappedTPM20}, implement CommandChannel 2020-05-05 16:56:57 -07:00
attest_test.go Split linuxTPM -> {trousersTPM,wrappedTPM20}, implement CommandChannel 2020-05-05 16:56:57 -07:00
attest_tpm12_test.go Split linuxTPM -> {trousersTPM,wrappedTPM20}, implement CommandChannel 2020-05-05 16:56:57 -07:00
attest.go Split linuxTPM -> {trousersTPM,wrappedTPM20}, implement CommandChannel 2020-05-05 16:56:57 -07:00
challenge_test.go Rename AIK to AK everywhere 2019-10-09 08:56:19 +11:00
challenge.go Rename AIK to AK everywhere 2019-10-09 08:56:19 +11:00
eventlog_fuzz.go Fix linter errors, go fmt (#130) 2019-10-10 14:29:46 -07:00
eventlog_test.go Add workaround in validation for missing exit boot services event log messages (#153) 2020-04-16 10:20:55 -07:00
eventlog_workarounds.go Fix broken build from intersection of two PRs (#155) 2020-04-16 11:42:48 -07:00
eventlog.go Export InvalidPCRs field in ReplayError (#189) 2020-11-30 11:56:55 -08:00
example_test.go Fix linter errors, go fmt (#130) 2019-10-10 14:29:46 -07:00
key_linux.go Disable linux TPM12 support if build without cgo 2020-09-24 11:35:08 -07:00
key_windows.go Split linuxTPM -> {trousersTPM,wrappedTPM20}, implement CommandChannel 2020-05-05 16:56:57 -07:00
pcp_windows.go Rename AIK to AK everywhere 2019-10-09 08:56:19 +11:00
secureboot_test.go Begin implementing extraction of windows info from the event log (#167) 2020-06-01 17:35:23 -07:00
secureboot.go Begin implementing extraction of windows info from the event log (#167) 2020-06-01 17:35:23 -07:00
storage.go Refactor part 1: Refactor logic for keys into structs for each TPM/platform invariant. (#53) 2019-07-19 13:05:18 -07:00
tpm12_linux.go Disable linux TPM12 support if build without cgo 2020-09-24 11:35:08 -07:00
tpm_fake.go Add InjectSimulatedTPMForTest function for testing (#187) 2020-11-19 07:43:19 +01:00
tpm_linux.go Add InjectSimulatedTPMForTest function for testing (#187) 2020-11-19 07:43:19 +01:00
tpm_other.go Refactor *platformTPM -> tpmBase interface (#160) 2020-05-05 14:56:40 -07:00
tpm_test.go attest: re-work EK API (#79) 2019-08-21 10:26:55 -07:00
tpm_windows.go Split linuxTPM -> {trousersTPM,wrappedTPM20}, implement CommandChannel 2020-05-05 16:56:57 -07:00
tpm.go Fix Go Vet string conversion warnings (#185) 2020-11-18 22:25:44 -08:00
vendors.go Update vendors list (#57) 2019-08-06 16:47:13 -07:00
win_events_test.go Implement parsing of PCR 13 WBCL information (#178) 2020-09-14 16:44:10 -07:00
win_events.go Fix Go Vet string conversion warnings (#185) 2020-11-18 22:25:44 -08:00
wrapped_tpm20.go Fix oss-fuzz, update to latest go-tpm (#165) 2020-05-07 15:25:53 -07:00