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

Function decryptPayload

hcvault/keysource.go:368–372  ·  view source on GitHub ↗

decryptPayload returns the payload for a decrypt request of the encryptedKey.

(encryptedKey string)

Source from the content-addressed store, hash-verified

366// decryptPayload returns the payload for a decrypt request of the
367// encryptedKey.
368func decryptPayload(encryptedKey string) map[string]interface{} {
369 return map[string]interface{}{
370 "ciphertext": encryptedKey,
371 }
372}
373
374// dataKeyFromSecret attempts to extract the data key from the data of the
375// provided secret.

Callers 2

DecryptContextMethod · 0.85
TestMasterKey_EncryptFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestMasterKey_EncryptFunction · 0.68