pe

package
v0.0.0-...-8de7173 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const CERTIFICATE_TABLE = 4

CERTIFICATE_TABLE is the index of the Certificate Table info in the Data Directory structure in the PE header

Variables

This section is empty.

Functions

func CheckCert

func CheckCert(peData []byte) (bool, error)

CheckCert returns true if input byte slice of a PE file contains an embedded cert

func CopySig

func CopySig(signedFileData, targetFileData []byte) ([]byte, error)

CopySig takes byte slices of a signed PE file, a PE file to sign, and returns a new byte slice of a PE file by taking the signature from the first file and adding it to the second file

func GetCert

func GetCert(peData []byte) ([]byte, error)

func RemoveCert

func RemoveCert(peData []byte) ([]byte, error)

RemoveCert returns a byte slice of a PE file without it's cert if it has one

func WriteCert

func WriteCert(peData, cert []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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