kmod

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAGICNUMBER = "~Module signature appended~\n"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Kmod

type Kmod struct {
	Name       string
	Length     uint64
	Content    []byte
	Signatures []Signature
	SigCount   int
}

func GetKmod

func GetKmod(filename string) (*Kmod, error)

type Signature

type Signature struct {
	Name       []byte
	Kid        []byte
	Signature  []byte
	Algo       byte
	Hash       byte
	Sigtype    byte
	Namelen    uint64
	Kidlen     uint64
	Siglen     uint64
	Sectionlen uint64
	Payloadlen uint64
}

func GetSignature

func GetSignature(k *Kmod) *Signature

Jump to

Keyboard shortcuts

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