go-uefi
go-uefi copied to clipboard
Implement a function to get the current Secure Boot Mode
This graph shows different secure boot mode: https://uefi.org/specs/UEFI/2.11/32_Secure_Boot_and_Driver_Signing.html#firmware-os-key-exchange-creating-trust-relationships
We should have a function with an enum that can check and tell if we are in User Mode, Deployed Mode, Audit Mode or Setup Mode