Documentation ¶
Index ¶
Constants ¶
View Source
const GpgBin = "gpg"
Variables ¶
This section is empty.
Functions ¶
func GetPubRingArmor ¶
TODO : unit tests Here we read armored version of Key by calling GPG process
func GetSecretRingArmor ¶
Types ¶
type Crypter ¶
type Crypter interface { Name() string Encrypt(writer io.Writer) (io.WriteCloser, error) Decrypt(reader io.Reader) (io.Reader, error) }
Crypter is responsible for making cryptographical pipeline parts when needed
type GpgKeyExportError ¶
type GpgKeyExportError struct {
// contains filtered or unexported fields
}
func NewGpgKeyExportError ¶
func NewGpgKeyExportError(text string) GpgKeyExportError
func (GpgKeyExportError) Error ¶
func (err GpgKeyExportError) Error() string
type SymmetricKey ¶
type SymmetricKey interface { Generate() error Encrypt() error Decrypt() error GetKey() []byte SetKey([]byte) error GetEncryptedKey() []byte SetEncryptedKey([]byte) error GetKeyID() string GetEncryptedKeyLen() int GetKeyLen() int }
SymmetricKey encryption interface Used by AWS KMS Crypter When implement another crypters, can be moved to crypto package
Click to show internal directories.
Click to hide internal directories.