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

Method Decrypt

hcvault/keysource.go:275–277  ·  view source on GitHub ↗

Decrypt decrypts the EncryptedKey field with Vault Transit and returns the result. Consider using DecryptContext instead.

()

Source from the content-addressed store, hash-verified

273//
274// Consider using DecryptContext instead.
275func (key *MasterKey) Decrypt() ([]byte, error) {
276 return key.DecryptContext(context.Background())
277}
278
279// DecryptContext decrypts the EncryptedKey field with Vault Transit and returns the result.
280func (key *MasterKey) DecryptContext(ctx context.Context) ([]byte, error) {

Callers 2

TestMasterKey_DecryptFunction · 0.95

Calls 1

DecryptContextMethod · 0.95

Tested by 2

TestMasterKey_DecryptFunction · 0.76