Versions in this module Expand all Collapse all v0 v0.0.2 Nov 7, 2022 Changes in this version + type Config struct + Credentials string + KeyFile string + KeyURI string + Template KeyTemplate + type EncrypterDecrypter interface + DecryptFile func(src, dst string, ad []byte) error + EncryptFile func(src, dst string, ad []byte) error + NewDataKey func(keypath string) error + func NewEncrypterDecrypter(config Config) (EncrypterDecrypter, error) + type KeyTemplate string + var AES128CTRHMACSHA256KeyTemplate KeyTemplate = "AES128CTRHMACSHA256" + var AES128CTRHMACSHA256Segment1MBKeyTemplate KeyTemplate = "AES128CTRHMACSHA256Segment1MB" + var AES128CTRHMACSHA256Segment4KBKeyTemplate KeyTemplate = "AES128CTRHMACSHA256Segment4KB" + var AES128GCMHKDF1MBKeyTemplate KeyTemplate = "AES128GCMHKDF1MB" + var AES128GCMHKDF4KBKeyTemplate KeyTemplate = "AES128GCMHKDF4KB" + var AES128GCMKeyTemplate KeyTemplate = "AES128GCM" + var AES256CTRHMACSHA256KeyTemplate KeyTemplate = "AES256CTRHMACSHA256" + var AES256CTRHMACSHA256Segment1MBKeyTemplate KeyTemplate = "AES256CTRHMACSHA256Segment1MB" + var AES256CTRHMACSHA256Segment4KBKeyTemplate KeyTemplate = "AES256CTRHMACSHA256Segment4KB" + var AES256GCMHKDF1MBKeyTemplate KeyTemplate = "AES256GCMHKDF1MB" + var AES256GCMHKDF4KBKeyTemplate KeyTemplate = "AES256GCMHKDF4KB" + var AES256GCMNoPrefixKeyTemplate KeyTemplate = "AES256GCMNoPrefix" + var ChaCha20Poly1305KeyTemplate KeyTemplate = "ChaCha20Poly1305" + func (t KeyTemplate) IsStream() (bool, error) + type StreamEncrypterDecrypter interface + Decrypt func(src io.Reader, dst io.Writer, ad []byte) error + Encrypt func(src io.Reader, dst io.Writer, ad []byte) error + NewDataKey func(keypath string) error + func NewStreamEncrypterDecrypter(config Config) (StreamEncrypterDecrypter, error)