Documentation ¶
Index ¶
- Constants
- Variables
- func CmpEFIGUID(cmp1 EFIGUID, cmp2 EFIGUID) bool
- func GUIDToBytes(g *EFIGUID) []byte
- func ParseUtf16Var(data *bytes.Buffer) (string, error)
- func ReadCert(b []byte) (*x509.Certificate, error)
- func ReadCertFromFile(path string) (*x509.Certificate, error)
- func ReadKey(b []byte) (*rsa.PrivateKey, error)
- func ReadKeyFromFile(path string) (*rsa.PrivateKey, error)
- func ReadNullString(f io.Reader) []byte
- func WriteGUID(b *bytes.Buffer, g *EFIGUID)
- type EFIGUID
- type EFITImeCapabilitie
- type EFITime
Constants ¶
View Source
const SizeofEFIGUID uint32 = 16
View Source
const SizeofEFITime = 2 + 6 + 4 + 2 + 2
Variables ¶
View Source
var ( EFI_TIME_ADJUST_DAYLIGHT uint8 = 0x01 EFI_TIME_IN_DAYLIGHT uint8 = 0x02 EFI_UNSPECIFIED_TIMEZONE uint16 = 0x07FF )
Functions ¶
func ParseUtf16Var ¶
Parse an efivar as a UTF-16 string.
func ReadCertFromFile ¶
func ReadCertFromFile(path string) (*x509.Certificate, error)
func ReadKeyFromFile ¶
func ReadKeyFromFile(path string) (*rsa.PrivateKey, error)
Types ¶
type EFITImeCapabilitie ¶
type EFITime ¶
type EFITime struct { Year uint16 // 1900 - 9999 AKA Y99K y'all Month uint8 // 1-12 Day uint8 // 1 -31 Hour uint8 // 0 - 23 Minute uint8 // 0 - 59 Second uint8 // 0 - 59 Pad1 uint8 Nanosecond uint32 // 0 - 999,999,999 TimeZone int16 // -1440 to 1440 or 2047 Daylight uint8 Pad2 uint8 }
func NewEFITime ¶
func NewEFITime() *EFITime
Click to show internal directories.
Click to hide internal directories.