UpdateMasterKeys encrypts the data key with all master keys
(dataKey []byte)
| 830 | |
| 831 | // UpdateMasterKeys encrypts the data key with all master keys |
| 832 | func (m *Metadata) UpdateMasterKeys(dataKey []byte) (errs []error) { |
| 833 | return m.UpdateMasterKeysWithKeyServices(dataKey, []keyservice.KeyServiceClient{ |
| 834 | keyservice.NewLocalClient(), |
| 835 | }) |
| 836 | } |
| 837 | |
| 838 | // GetDataKeyWithKeyServices retrieves the data key, asking KeyServices to decrypt it with each |
| 839 | // MasterKey in the Metadata's KeySources until one of them succeeds. |
no test coverage detected