squarooticus / efi-measured-boot

Measured Boot for TPM 2.0-enabled UEFI Debian Systems
MIT License
17 stars 2 forks source link

Modularize counter arithmetic #10

Open squarooticus opened 2 years ago

squarooticus commented 2 years ago

There are some potential pitfalls with the counter arithmetic since it requires conversions from a fixed-width octet string to and from hex and/or decimal, so it would be nice to have this done right and encapsulated once rather than strewn across the codebase.