MCPcopy Index your code
hub / github.com/getsops/sops / SetEncryptedDataKey

Method SetEncryptedDataKey

gcpkms/keysource.go:200–202  ·  view source on GitHub ↗

SetEncryptedDataKey sets the encrypted data key for this master key.

(enc []byte)

Source from the content-addressed store, hash-verified

198
199// SetEncryptedDataKey sets the encrypted data key for this master key.
200func (key *MasterKey) SetEncryptedDataKey(enc []byte) {
201 key.EncryptedKey = string(enc)
202}
203
204// EncryptedDataKey returns the encrypted data key this master key holds.
205func (key *MasterKey) EncryptedDataKey() []byte {

Callers 1

Calls

no outgoing calls

Tested by 1