efi

package
v0.0.0-...-48be911 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 13 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

Keeps track of expected attributes for each variable

Functions

func GetBootEntry

func GetBootEntry(entry string) *device.EFILoadOption

func GetBootOrder

func GetBootOrder() []string

func GetCurrentlyBootedEntry

func GetCurrentlyBootedEntry() (string, error)

Return the boot entry which is currently booted.

func GetKEK

func GetKEK() (*signature.SignatureDatabase, error)

func GetPK

func GetPK() (*signature.SignatureDatabase, error)

func GetSecureBoot

func GetSecureBoot() bool

GetSecureBoot returns if secure boot has been enabled on the machine.

func GetSetupMode

func GetSetupMode() bool

GetSetupMode returns if setup mode has been enabled on the machine.

func Getdb

func Getdb() (*signature.SignatureDatabase, error)

func Getdbx

func Getdbx() (*signature.SignatureDatabase, error)

func SignEFIExecutable

func SignEFIExecutable(key crypto.Signer, cert *x509.Certificate, file []byte) ([]byte, error)

func SignEFIVariable

func SignEFIVariable(key crypto.Signer, cert *x509.Certificate, varname string, siglist []byte) ([]byte, error)

func SignEFIVariableWithAttr

func SignEFIVariableWithAttr(key crypto.Signer, cert *x509.Certificate, varname string, siglist []byte, attr attributes.Attributes) ([]byte, error)

func WriteEFIVariable

func WriteEFIVariable(variable string, buf []byte) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL