Dmitrii Okunev
9e8b4def11
[dumpregisters] Dump registers in a human-readable YAML
2022-05-03 16:26:01 +02:00
Dmitrii Okunev
ec7b2c5e5d
[pcr0tool] Add a comparator with TPM EventLog
...
Added flag "-compare-with-eventlog" to verb "sum" of pcr0tool. The
option allows to compare the expected measurements with actual
measurements from TPM EventLog and print all the found mismatches.
Also the comparator tries to restore the original value of PCR0_DATA
through bruteforcing.
Signed-off-by: Dmitrii Okunev <xaionaro@fb.com>
2022-05-03 16:26:01 +02:00
Dmitrii Okunev
9c65fff579
Add a fake Intel CBnT image
2022-05-03 16:26:01 +02:00
Dmitrii Okunev
733ae38177
[pcr0tool] Add verbs display_fwinfo and display_eventlog
...
* display_eventlog parses a TPM EventLog
* display_fwinfo parses vendor, version, release date and revision of a
firmware
Signed-off-by: Dmitrii Okunev <xaionaro@fb.com>
2022-05-03 16:26:01 +02:00
Dmitrii Okunev
7362283277
[pcr0tool][dumpregisters] Add support for dumped TXT Public Space
...
Adding a parser for files with dumped TXT Public Space
Signed-off-by: Dmitrii Okunev <xaionaro@fb.com>
2022-05-03 16:26:01 +02:00
Dmitrii Okunev
e2a02949f4
Switch pkg/intel to fiano's version
2022-01-14 12:41:27 +00:00
Ilya
2275e28131
Use Fiano's bytes package
...
Signed-off-by: Ilya <rihter007@inbox.ru>
2021-12-14 20:58:27 +00:00
Christopher Meis
31b35ec01b
Remove hwapi package
...
Add go-linux-lowlevel-hw as dependency
Integrate new dependency
Pray for salvation
Signed-off-by: Christopher Meis <christopher.meis@9elements.com>
2021-08-13 09:05:17 +02:00
Christopher Meis
e2ec25a11e
Make error msgs more go style by uncapitalize them
...
Signed-off-by: Christopher Meis <christopher.meis@9elements.com>
2021-08-11 11:55:47 +02:00
Ilya Arzamartsev
900339c2a7
Move PrintRegisters&PrintRegister to helpers package
2021-06-30 17:15:08 +02:00
Ilya Arzamartsev
d6733a32b5
Make PrintRegisters/PrintRegister exportable
2021-06-30 17:15:08 +02:00
Dmitrii Okunev
17e89b32be
Merge branch 'master' into bugfix/do_not_trigger_acm_corruptor
2021-06-24 15:20:05 +01:00
Dmitrii Okunev
17c4648581
bugfix(registers): Avoid reading of ACM_POLICY_STATUS corruptor-register
...
Signed-off-by: Dmitrii Okunev <xaionaro@fb.com>
2021-06-24 15:16:22 +01:00
Dmitrii Okunev
046963840c
fix(pcr0tool): Enable volumes decompression on "printnodes"
2021-05-06 21:00:48 +01:00
Dmitrii Okunev
ef778f1c63
fix(log): Disable fiano logging
2021-05-04 21:05:36 +01:00
Dmitrii Okunev
2164405f5c
bugfix(pcr0tool): Fix parsing of registers
2021-04-14 09:55:43 +00:00
Dmitrii Okunev
c5a031e410
Merge branch 'master' into docs/pcr0tool
2021-04-14 10:53:42 +01:00
Dmitrii Okunev
5db87139e4
Merge branch 'master' into output_register_address
2021-04-13 19:06:17 +01:00
Dmitrii Okunev
b215c1905f
feat(pcr0tool): Adjustable measurement length to print
2021-04-12 20:49:13 +01:00
Dmitrii Okunev
de6fde31a5
comment(pcr0tool): Explain why not to use local registers by default
2021-04-07 14:36:43 +01:00
Dmitrii Okunev
47bb6006b0
Merge branch 'master' into docs/pcr0tool
...
Conflicts:
cmd/pcr0tool/commands/diff/command.go
cmd/pcr0tool/commands/sum/command.go
2021-04-07 14:33:24 +01:00
Dmitrii Okunev
32fe967ffc
docs(pcr0tool): Add README.md to pcr0tool
2021-04-07 14:31:23 +01:00
Dmitrii Okunev
6d17600451
ux(pcr0tool): Do not require dumpregisters before sum or diff
...
Previously we required to do `dumpregisters` before executing `sum`
or/and `diff` on CBnT systems. This patch just re-uses the code of
dumpregisters directly in `sum` and `diff` (through option
`-registers /dev`).
2021-04-07 14:30:46 +01:00
Ilya Arzamartsev
726dd1dadd
Add Address method to Register interface
...
Output register address in dump_registers command
2021-04-07 13:18:04 +01:00
Ilya Arzamartsev
98be265988
Simple TPM detection algorithm based on local files
...
Allow user to specify local TPM device
2021-04-07 01:50:47 -04:00
Dmitrii Okunev
3eba433097
squash(pcr0tool): Add the main package of "pcr0tool"
...
Other contributors:
* Ilya Arzamartsev <ilyaarzamartsev@fb.com>
* Marco Guerri <marco.guerri.dev@fastmail.com>
2021-04-01 10:52:03 +02:00