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

Method SetEncryptedDataKey

pgp/keysource.go:379–381  ·  view source on GitHub ↗

SetEncryptedDataKey sets the encrypted data key for this master key.

(enc []byte)

Source from the content-addressed store, hash-verified

377
378// SetEncryptedDataKey sets the encrypted data key for this master key.
379func (key *MasterKey) SetEncryptedDataKey(enc []byte) {
380 key.EncryptedKey = string(enc)
381}
382
383// Decrypt first attempts to obtain the data key from the EncryptedKey
384// stored in the MasterKey using OpenPGP, before falling back to GnuPG.

Callers 2

encryptWithOpenPGPMethod · 0.95
encryptWithGnuPGMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected