Documentation ¶
Index ¶
Constants ¶
View Source
const NonceSize = 12
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cryptor ¶
func NewCryptor ¶
func NewCryptor(keyManager KeyManager, prng io.Reader) Cryptor
type EncryptionFlags ¶
type EncryptionFlags struct {
// contains filtered or unexported fields
}
func AddEncryptionFlags ¶
func AddEncryptionFlags(flagSet *flag.FlagSet) *EncryptionFlags
func NewEncryptionFlags ¶
func NewEncryptionFlags() EncryptionFlags
type EncryptionKeys ¶
type EncryptionKeys map[string]struct{}
func (EncryptionKeys) Set ¶
func (e EncryptionKeys) Set(key string) error
func (EncryptionKeys) String ¶
func (EncryptionKeys) String() string
type KeyManager ¶
func NewKeyManager ¶
func NewKeyManager(encryptionKey Key, decryptionKeys []Key) (KeyManager, error)
Click to show internal directories.
Click to hide internal directories.