Documentation ¶
Overview ¶
Package recipient implements the recipient public key store.
Index ¶
- type Store
- func (s *Store) Clear(r string) error
- func (s *Store) CloneRecipients() map[string]*ecdh.PublicKey
- func (s *Store) Get(r string) *ecdh.PublicKey
- func (s *Store) GetByKey(k *ecdh.PublicKey) string
- func (s *Store) LoadFromPEM(path string) error
- func (s *Store) Normalize(r string) (string, string, string, error)
- func (s *Store) Set(r string, k *ecdh.PublicKey) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store is the recipient store.
func (*Store) CloneRecipients ¶
CloneRecipients returns a copy of the internal recipient map.
func (*Store) Get ¶
Get returns the ecdh.PublicKey for the given recipient, or nil iff the recipient does not exist. Note that this treats Normalize() failures as if the recipient is invalid.
func (*Store) LoadFromPEM ¶ added in v0.0.2
LoadFromPEM adds a receipient from a PEM file on disk.
Click to show internal directories.
Click to hide internal directories.