Documentation ¶
Overview ¶
Package pesign implements the PE (portable executable) signing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateSigner ¶
type CertificateSigner interface { Signer() crypto.Signer Certificate() *x509.Certificate }
CertificateSigner is a provider of the certificate and the signer.
type PCRSigner ¶
type PCRSigner struct {
// contains filtered or unexported fields
}
PCRSigner implements measure.RSAKey interface.
func NewPCRSigner ¶
NewPCRSigner creates a new PCR signer from the private key file.
func (*PCRSigner) PublicRSAKey ¶
PublicRSAKey returns the public key.
type SecureBootSigner ¶
type SecureBootSigner struct {
// contains filtered or unexported fields
}
SecureBootSigner implements pesign.CertificateSigner interface.
func NewSecureBootSigner ¶
func NewSecureBootSigner(certPath, keyPath string) (*SecureBootSigner, error)
func (*SecureBootSigner) Certificate ¶
func (s *SecureBootSigner) Certificate() *x509.Certificate
Certificate returns the certificate.
func (*SecureBootSigner) Signer ¶
func (s *SecureBootSigner) Signer() crypto.Signer
Signer returns the signer.
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer sigs PE (portable executable) files.
func NewSigner ¶
func NewSigner(provider CertificateSigner) (*Signer, error)
NewSigner creates a new Signer.
type SigningKeyAndCertificate ¶
type SigningKeyAndCertificate struct { // File-based. // // Static key and certificate paths. KeyPath string `yaml:"keyPath,omitempty"` CertPath string `yaml:"certPath,omitempty"` }
SigningKeyAndCertificate describes a signing key & certificate.
Click to show internal directories.
Click to hide internal directories.