MCPcopy
hub / github.com/getsops/sops / MasterKey

Interface MasterKey

keys/keys.go:4–14  ·  view source on GitHub ↗

MasterKey provides a way of securing the key used to encrypt the Tree by encrypting and decrypting said key.

Source from the content-addressed store, hash-verified

2
3// MasterKey provides a way of securing the key used to encrypt the Tree by encrypting and decrypting said key.
4type MasterKey interface {
5 Encrypt(dataKey []byte) error
6 EncryptIfNeeded(dataKey []byte) error
7 EncryptedDataKey() []byte
8 SetEncryptedDataKey([]byte)
9 Decrypt() ([]byte, error)
10 NeedsRotation() bool
11 ToString() string
12 ToMap() map[string]interface{}
13 TypeToIdentifier() string
14}

Callers 39

encryptWithGcpKmsMethod · 0.95
encryptWithHckmsMethod · 0.95
encryptWithVaultMethod · 0.95
encryptWithAgeMethod · 0.95
EncryptContextMethod · 0.65
TestMasterKey_EncryptFunction · 0.65
TestMasterKey_DecryptFunction · 0.65

Implementers 7

MasterKeyhckms/keysource.go
MasterKeypgp/keysource.go
MasterKeygcpkms/keysource.go
MasterKeykms/keysource.go
MasterKeyhcvault/keysource.go
MasterKeyazkv/keysource.go
MasterKeyage/keysource.go

Calls

no outgoing calls

Tested by

no test coverage detected