Versions in this module Expand all Collapse all v0 v0.1.0 May 16, 2026 Changes in this version + func BuildSignedData(spc []byte, signer crypto.Signer, chain []*x509.Certificate, opts SignOptions) ([]byte, error) + func BuildSpcIndirectDataContent(peDigest []byte, h crypto.Hash) ([]byte, error) + func RequestTimestamp(ctx context.Context, tsaURL string, signature []byte, h crypto.Hash) ([]byte, error) + func Sign(pe []byte, signer Signer, opts SignOptions) ([]byte, error) + func SignWithChain(pe []byte, signer crypto.Signer, chain []*x509.Certificate, opts SignOptions) ([]byte, error) + type PE struct + func Parse(raw []byte) (*PE, error) + func (p *PE) AuthenticodeDigest(h hash.Hash) []byte + func (p *PE) EmbedSignature(cms []byte) []byte + type SignOptions struct + Context context.Context + Hash crypto.Hash + ProgramName string + ProgramURL string + SigningTime time.Time + TSAURL string + type Signer interface + Certificate func() *x509.Certificate + CertificateChain func() []*x509.Certificate