9elements / tpmtool

A Linux only tool for TPM interaction
https://www.tpmtool.org
BSD 3-Clause "New" or "Revised" License
35 stars 11 forks source link

Fix EFI GUID #5

Open zaolin opened 6 years ago

zaolin commented 6 years ago

https://github.com/systemboot/tpmtool/blob/304bb9ad19f03ad69bad1dff43103730558233b6/pkg/tpm/structures.go#L14

Merge D and E

orangecms commented 3 years ago

Can you elaborate on that? The UUID format is 5 pieces of 4-2-2-2-6 bytes; example: 123e4567-e89b-12d3-a456-426614174000 Why would you merge the last two?

https://en.m.wikipedia.org/wiki/Universally_unique_identifier#:~:text=IEC%209834%2D8.-,Format,e89b%2D12d3%2Da456%2D426614174000

orangecms commented 3 years ago

There is actually an issue with the GUID. For example, I get this:

Variable - 8be4df61-93ca-11d2-daa-00e098032b8c - SecureBoot

part D is wrong; it should be aa0d (the full GUID is 8be4df61-93ca-11d2-aa0d-00e098032b8c)