Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptionManager ¶
type EncryptionManager struct {
// contains filtered or unexported fields
}
EncryptionManager implements AES-GCM encryption.
func NewEncryptionManager ¶
func NewEncryptionManager(fileClient file.FileOperations) *EncryptionManager
NewEncryptionManager creates a new EncryptionManager instance.
func (*EncryptionManager) Decrypt ¶
func (a *EncryptionManager) Decrypt(ciphertext []byte) ([]byte, error)
Decrypt decrypts ciphertext using AES-GCM.
func (*EncryptionManager) Encrypt ¶
func (a *EncryptionManager) Encrypt(plaintext []byte) ([]byte, error)
Encrypt encrypts plaintext using AES-GCM.
func (*EncryptionManager) Initialize ¶
func (a *EncryptionManager) Initialize(AESKeyPath string) error
Initialize loads and caches the AES key and cipher.
Click to show internal directories.
Click to hide internal directories.