Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPGPPacketConfig ¶
NewPGPPacketConfig constructs a new OpenPGP packet configuration from the given cipher and hash, as specified in RFC 4880.
Types ¶
type Decrypter ¶
A Decrypter is a generic interface that abstracts away the details of performing a decryption. Currently, PGP and Red October are supported.
func NewPGPDecrypter ¶
NewPGPDecrypter returns a new Decrypter that operates by using the provided keyring and credentials to perform PGP decryption on ciphertexts.
func NewRODecrypter ¶
NewRODecrypter returns a new Decrypter that operates by making decryption requests to the specified Red October server with the given credentials.
caPath is a path to a CA file that will be used to validate the server's identity. If it is empty, the system's default CA pool will be used.