Documentation ¶
Overview ¶
Package file implements SecureBoot/PCR signers via plain filesystem files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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)
NewSecureBootSigner creates a new SecureBootSigner.
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.
Click to show internal directories.
Click to hide internal directories.