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

Method Decrypt

pgp/keysource.go:388–390  ·  view source on GitHub ↗

Decrypt first attempts to obtain the data key from the EncryptedKey stored in the MasterKey using OpenPGP, before falling back to GnuPG. When both attempts fail, an error is returned. Consider using DecryptContext instead.

()

Source from the content-addressed store, hash-verified

386//
387// Consider using DecryptContext instead.
388func (key *MasterKey) Decrypt() ([]byte, error) {
389 return key.DecryptContext(context.Background())
390}
391
392// DecryptContext first attempts to obtain the data key from the EncryptedKey
393// stored in the MasterKey using OpenPGP, before falling back to GnuPG.

Callers

nothing calls this directly

Calls 1

DecryptContextMethod · 0.95

Tested by

no test coverage detected