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

Method Encrypt

kms/keysource.go:262–264  ·  view source on GitHub ↗

Encrypt takes a SOPS data key, encrypts it with KMS and stores the result in the EncryptedKey field. Consider using EncryptContext instead.

(dataKey []byte)

Source from the content-addressed store, hash-verified

260//
261// Consider using EncryptContext instead.
262func (key *MasterKey) Encrypt(dataKey []byte) error {
263 return key.EncryptContext(context.Background(), dataKey)
264}
265
266// EncryptContext takes a SOPS data key, encrypts it with KMS and stores the result
267// in the EncryptedKey field.

Callers 1

EncryptIfNeededMethod · 0.95

Calls 1

EncryptContextMethod · 0.95

Tested by

no test coverage detected