sigtool

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

README

sigtool

This a sigtool in Go for signed PE files. Currently, only extracting digital signatures embeded in a PKCS#7 SignedData in a signed PE is supported. Adding and deleting digital signatures will be supported soon.

Command Line Usage

Example sigtool CLI usage:

go get github.com/konidev20/sigtool
gosigtool test.exe

Documentation

Index

Constants

View Source
const (
	// PKCS#7 signature data starts after 8-byte security directory header
	SecurityDirHeaderSize = 8
	// Maximum reasonable signature size (10MB)
	MaxSignatureSize = 10 * 1024 * 1024
)

Variables

This section is empty.

Functions

func ExtractDigitalSignature

func ExtractDigitalSignature(filePath string) (buf []byte, err error)

ExtractDigitalSignature extracts a digital signature specified in a signed PE file. It returns a digital signature (pkcs#7) in bytes.

func IsValidDigitalSignature

func IsValidDigitalSignature(filePath string) (err error)

Types

This section is empty.

Directories

Path Synopsis
cmd
gosigtool command

Jump to

Keyboard shortcuts

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