Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachingSignerGen ¶
type CachingSignerGen struct { SignerGen SignerGen Interval time.Duration // contains filtered or unexported fields }
CachingSignerGen is a SignerGen that can cache the previously generated Signer for some time.
type CryptoLoader ¶
type CryptoLoader struct { trust.DB // Dir is the directory where the AS certificates and private keys are // loaded from. Dir string // TRCDirs are optional directories from which TRCs are loaded. TRCDirs []string }
CryptoLoader loads chains from the given directory or the DB.
func (CryptoLoader) Chains ¶
func (l CryptoLoader) Chains(ctx context.Context, query trust.ChainQuery) ([][]*x509.Certificate, error)
Chains loads chains from disk, stores them to DB, and returns the result from DB. The fallback mode is always the result of the DB.
type LoadingRing ¶
type LoadingRing struct {
Dir string
}
LoadingRing is a key ring that loads the private keys from the configured directory.
func (LoadingRing) PrivateKeys ¶
PrivateKeys loads all private keys that are in PKCS#8 format from the directory.
type RenewingSigner ¶
type RenewingSigner struct {
SignerGen SignerGen
}
RenewingSigner is a signer that automatically picks up new key/cert material.
func (RenewingSigner) Sign ¶
func (s RenewingSigner) Sign( ctx context.Context, msg []byte, associatedData ...[]byte, ) (*cryptopb.SignedMessage, error)
Sign signs the message with the latest available Signer.
Directories ¶
Path | Synopsis |
---|---|
Package mock_trust is a generated GoMock package.
|
Package mock_trust is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.