Lines Matching refs:key_data
145 KeyData* key_data = new KeyData(blob, additional_params); in BuildRsaKey() local
146 if (!RSA_set_ex_data(rsa.get(), rsa_index_, key_data)) { in BuildRsaKey()
148 delete key_data; in BuildRsaKey()
154 GetKeymaster1PublicKey(key_data->key_material, key_data->begin_params, error)); in BuildRsaKey()
185 KeyData* key_data = new KeyData(blob, additional_params); in BuildEcKey() local
186 if (!EC_KEY_set_ex_data(ec_key.get(), ec_key_index_, key_data)) { in BuildEcKey()
188 delete key_data; in BuildEcKey()
264 keymaster_error_t Keymaster1Engine::Keymaster1Finish(const KeyData* key_data, in Keymaster1Finish() argument
267 if (key_data->op_handle == 0) in Keymaster1Finish()
274 device()->update(device(), key_data->op_handle, &key_data->finish_params, &input, in Keymaster1Finish()
279 return device()->finish(device(), key_data->op_handle, &key_data->finish_params, in Keymaster1Finish()
286 KeyData* key_data = instance_->GetData(rsa); in rsa_sign_raw() local
287 if (!key_data) in rsa_sign_raw()
290 if (padding != key_data->expected_openssl_padding) { in rsa_sign_raw()
292 key_data->expected_openssl_padding, padding); in rsa_sign_raw()
298 key_data->error = instance_->Keymaster1Finish(key_data, input, &output); in rsa_sign_raw()
299 if (key_data->error != KM_ERROR_OK) in rsa_sign_raw()
311 KeyData* key_data = instance_->GetData(rsa); in rsa_decrypt() local
312 if (!key_data) in rsa_decrypt()
315 if (padding != key_data->expected_openssl_padding) { in rsa_decrypt()
317 key_data->expected_openssl_padding, padding); in rsa_decrypt()
323 key_data->error = instance_->Keymaster1Finish(key_data, input, &output); in rsa_decrypt()
324 if (key_data->error != KM_ERROR_OK) in rsa_decrypt()
336 KeyData* key_data = instance_->GetData(ec_key); in ecdsa_sign() local
337 if (!key_data) in ecdsa_sign()
347 key_data->error = instance_->Keymaster1Finish(key_data, input, &output); in ecdsa_sign()
348 if (key_data->error != KM_ERROR_OK) in ecdsa_sign()