moklist

package
v0.0.0-...-2a6e56a Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MokListEntry

type MokListEntry struct {
	Header MokListHeader

	ParsedCert *x509.Certificate
	// contains filtered or unexported fields
}

func CertListFromMOKDB

func CertListFromMOKDB() ([]*MokListEntry, error)

func CertListFromMOKDB() (*certlist.Certlist, error) {

func ParseCert

func ParseCert(buffer []byte) (*MokListEntry, error)

func (*MokListEntry) GetCertIssuer

func (m *MokListEntry) GetCertIssuer() string

func (*MokListEntry) GetCertSubject

func (m *MokListEntry) GetCertSubject() string

func (*MokListEntry) GetParsedCert

func (m *MokListEntry) GetParsedCert() *x509.Certificate

func (*MokListEntry) GetPublicKey

func (m *MokListEntry) GetPublicKey() *rsa.PublicKey

func (*MokListEntry) GetRawCert

func (m *MokListEntry) GetRawCert() []byte

type MokListHeader

type MokListHeader struct {
	Sigtype     [16]byte
	SigListSize uint32
	HeaderSize  uint32
	SigSize     uint32
	SigOwner    [16]byte
	Padding     byte
}

Jump to

Keyboard shortcuts

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