GetDataKey retrieves the data key from the first MasterKey in the Metadata's KeySources that's able to return it, using the local KeyService
()
| 961 | // GetDataKey retrieves the data key from the first MasterKey in the Metadata's KeySources that's able to return it, |
| 962 | // using the local KeyService |
| 963 | func (m Metadata) GetDataKey() ([]byte, error) { |
| 964 | return m.GetDataKeyWithKeyServices([]keyservice.KeyServiceClient{ |
| 965 | keyservice.NewLocalClient(), |
| 966 | }, nil) |
| 967 | } |
| 968 | |
| 969 | // ToBytes converts a string, int, float or bool to a byte representation. |
| 970 | func ToBytes(in interface{}) ([]byte, error) { |
no test coverage detected