Documentation ¶
Overview ¶
Provides a keyring with an openpgp.ReadMessage wrapper method that when called will automatically attempt private key decryption and save the passphrase in the private session kernel keyring for a configurable amount of time. If an encrypted private key is seen again before it expires, the original PromptFunction will not be called (unless decryption fails)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PassphraseKeyring ¶
A wrapper keyring that can automatically decrypt openpgp secret keys if the passphrase was previously used by the keyring (and the ttl has not expired) Such caching lives beyond the lifetime of the current process unless the process or thread keyring is used.
func (PassphraseKeyring) ReadMessage ¶
func (pkr PassphraseKeyring) ReadMessage(r io.Reader, keyring openpgp.KeyRing, prompt interface{}, config *packet.Config) (*openpgp.MessageDetails, error)
A look-alike to "golang.org/x/crypto/opengpg".ReadMessage. When called it calls the openpgp.ReadMessage function, passing the io.Reader and openpgp.Keyring verbatim but in