Lines Matching refs:mDevice
56 KeymasterDevice(T* d) : mDevice{d} {} in KeymasterDevice()
59 return mDevice->generate_key(mDevice, params, key_blob, nullptr); in generate_key()
62 if (mDevice->delete_key == nullptr) return KM_ERROR_OK; in delete_key()
63 return mDevice->delete_key(mDevice, key); in delete_key()
69 return mDevice->begin(mDevice, purpose, key, in_params, out_params, operation_handle); in begin()
76 return mDevice->update(mDevice, operation_handle, in_params, input, input_consumed, in update()
80 return mDevice->abort(mDevice, operation_handle); in abort()
84 T* const mDevice; member in android::vold::KeymasterDevice
90 ~Keymaster1Device() override final { keymaster1_close(mDevice); } in ~Keymaster1Device()
96 return mDevice->finish(mDevice, operation_handle, in_params, signature, out_params, output); in finish()
103 ~Keymaster2Device() override final { keymaster2_close(mDevice); } in ~Keymaster2Device()
109 return mDevice->finish(mDevice, operation_handle, in_params, nullptr, signature, out_params, in finish()
115 if (mDevice) mDevice->abort(mOpHandle); in ~KeymasterOperation()
127 mDevice->update(mOpHandle, nullptr, &inputBlob, &inputConsumed, nullptr, &outputBlob); in updateCompletely()
130 mDevice = nullptr; in updateCompletely()
137 mDevice = nullptr; in updateCompletely()
146 auto error = mDevice->finish(mOpHandle, nullptr, nullptr, nullptr, nullptr); in finish()
147 mDevice = nullptr; in finish()
157 auto error = mDevice->finish(mOpHandle, nullptr, nullptr, nullptr, &outputBlob); in finishWithOutput()
158 mDevice = nullptr; in finishWithOutput()
169 mDevice = nullptr; in Keymaster()
183 mDevice = std::make_shared<Keymaster1Device>(device); in Keymaster()
191 mDevice = std::make_shared<Keymaster2Device>(device); in Keymaster()
200 auto error = mDevice->generate_key(&inParams, &keyBlob); in generateKey()
212 auto error = mDevice->delete_key(&keyBlob); in deleteKey()
226 auto error = mDevice->begin(purpose, &keyBlob, &inParams, &outParams_set, &mOpHandle); in begin()
234 return KeymasterOperation(mDevice, mOpHandle); in begin()
241 auto error = mDevice->begin(purpose, &keyBlob, &inParams, nullptr, &mOpHandle); in begin()
246 return KeymasterOperation(mDevice, mOpHandle); in begin()