EncryptedDataKey returns the encrypted data key this master key holds.
()
| 203 | |
| 204 | // EncryptedDataKey returns the encrypted data key this master key holds. |
| 205 | func (key *MasterKey) EncryptedDataKey() []byte { |
| 206 | return []byte(key.EncryptedKey) |
| 207 | } |
| 208 | |
| 209 | // EncryptIfNeeded encrypts the provided SOPS data key, if it has not been |
| 210 | // encrypted yet. |
no outgoing calls