Versions in this module Expand all Collapse all v1 v1.0.39 Oct 28, 2026 Changes in this version + const Version + var ErrBadFormat = errors.New("not an encrypted backup artifact") + var ErrKeyMissing = errors.New("backup is encrypted but no encryption key is configured") + var ErrTampered = errors.New("encrypted backup artifact is corrupt or tampered") + var ErrWrongKey = errors.New("backup encryption key does not match the artifact") + func DecryptFile(srcPath, dstPath string, key *Key) error + func EncryptFile(srcPath, dstPath string, key *Key) error + func EncryptedKeyID(path string) (string, error) + func IsEncrypted(path string) (bool, error) + type Key struct + ID string + func ParseKey(keyID, material string) (*Key, error) + func ResolveKey(keyID, material string) (*Key, error) + func (k *Key) Fingerprint() string