Documentation ¶
Overview ¶
Package keyutils provides helpers for working with ECDSA public keys.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PublicKeyCache ¶
type PublicKeyCache struct {
// contains filtered or unexported fields
}
func NewPublicKeyCache ¶
func NewPublicKeyCache(ctx context.Context, cacher cache.Cacher, ttl time.Duration) (*PublicKeyCache, error)
NewPublicKeyCache creates a new public key cache from the given parameters.
func (*PublicKeyCache) GetPublicKey ¶
func (c *PublicKeyCache) GetPublicKey(ctx context.Context, id string, kms keys.KeyManager) (crypto.PublicKey, error)
GetPublicKey returns the public key for the provided ID.
Click to show internal directories.
Click to hide internal directories.