go-tpm-tools
go-tpm-tools copied to clipboard
Add dm-verity parser from kernel command line
- Add DmVerityState.
- DmVerityState will contain the attested dm-verity hash algorithms, root digests, and salts required for validating a dm-verity mounted device (e.g., root fs).
- Add parseArgs and nextArg translated from kernel source
- nextArg should copy the exact behavior of the kernel command line param and val parsing logic.
- This PR builds on top of #144; start reviewing at commit 0ddd603.
This is currently limited to the syntax of the ChromeOS, non-upstreamed fork of dm-verity. It can currently only parse out one dm-verity hash.