Home | History | Annotate | Download | only in keymaster

Lines Matching full:key_data

146     KeyData* key_data = new KeyData(blob, additional_params);
147 if (!RSA_set_ex_data(rsa.get(), rsa_index_, key_data)) {
149 delete key_data;
155 GetKeymaster1PublicKey(key_data->key_material, key_data->begin_params, error));
188 KeyData* key_data = new KeyData(blob, additional_params);
189 if (!EC_KEY_set_ex_data(ec_key.get(), ec_key_index_, key_data)) {
191 delete key_data;
269 keymaster_error_t Keymaster1Engine::Keymaster1Finish(const KeyData* key_data,
272 if (key_data->op_handle == 0)
279 device()->update(device(), key_data->op_handle, &key_data->finish_params, &input,
284 return device()->finish(device(), key_data->op_handle, &key_data->finish_params,
291 KeyData* key_data = instance_->GetData(rsa);
292 if (!key_data)
295 if (padding != key_data->expected_openssl_padding) {
297 key_data->expected_openssl_padding, padding);
303 key_data->error = instance_->Keymaster1Finish(key_data, input, &output);
304 if (key_data->error != KM_ERROR_OK)
316 KeyData* key_data = instance_->GetData(rsa);
317 if (!key_data)
320 if (padding != key_data->expected_openssl_padding) {
322 key_data->expected_openssl_padding, padding);
328 key_data->error = instance_->Keymaster1Finish(key_data, input, &output);
329 if (key_data->error != KM_ERROR_OK)
341 KeyData* key_data = instance_->GetData(ec_key);
342 if (!key_data)
352 key_data->error = instance_->Keymaster1Finish(key_data, input, &output);
353 if (key_data->error != KM_ERROR_OK)