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

Method Encrypt

hckms/keysource.go:136–138  ·  view source on GitHub ↗

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

(dataKey []byte)

Source from the content-addressed store, hash-verified

134//
135// Consider using EncryptContext instead.
136func (key *MasterKey) Encrypt(dataKey []byte) error {
137 return key.EncryptContext(context.Background(), dataKey)
138}
139
140// EncryptContext takes a SOPS data key, encrypts it with HuaweiCloud KMS and stores the result
141// in the EncryptedKey field.

Callers 1

EncryptIfNeededMethod · 0.95

Calls 1

EncryptContextMethod · 0.95

Tested by

no test coverage detected