Documentation
¶
Overview ¶
Package authenticode implements Microsoft Authenticode PE signing in pure Go. It computes the Authenticode digest, builds the CMS SignedData (with SpcIndirectDataContent), embeds an RFC3161 timestamp, and writes the resulting WIN_CERTIFICATE into the PE's attribute certificate table. It signs through any crypto.Signer (e.g. the github.com/KarpelesLab/hsm IDPrime backend driving a USB token).
Index ¶
- 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
- type SignOptions
- type Signer
Constants ¶
This section is empty.
Variables ¶
This section is empty.