mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 12:45:21 +01:00
Move MasterKey to separate package to avoid import cycles
This commit is contained in:
11
keys/keys.go
Normal file
11
keys/keys.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package keys
|
||||
|
||||
// MasterKey provides a way of securing the key used to encrypt the Tree by encrypting and decrypting said key.
|
||||
type MasterKey interface {
|
||||
Encrypt(dataKey []byte) error
|
||||
EncryptIfNeeded(dataKey []byte) error
|
||||
Decrypt() ([]byte, error)
|
||||
NeedsRotation() bool
|
||||
ToString() string
|
||||
ToMap() map[string]interface{}
|
||||
}
|
||||
Reference in New Issue
Block a user