Lines Matching refs:keymaster_dev
100 static int keymaster_init(keymaster_device_t **keymaster_dev)
111 rc = keymaster_open(mod, keymaster_dev);
121 *keymaster_dev = NULL;
128 keymaster_device_t *keymaster_dev = 0;
131 if (keymaster_init(&keymaster_dev)) {
137 SLOGI("keymaster version is %d", keymaster_dev->common.module->module_api_version);
139 if (keymaster_dev->common.module->module_api_version
145 if (!(keymaster_dev->flags & KEYMASTER_SOFTWARE_ONLY) &&
146 (keymaster_dev->flags & KEYMASTER_BLOBS_ARE_STANDALONE)) {
151 keymaster_close(keymaster_dev);
159 keymaster_device_t *keymaster_dev = 0;
161 if (keymaster_init(&keymaster_dev)) {
174 if (keymaster_dev->generate_keypair(keymaster_dev, TYPE_RSA, ¶ms,
191 keymaster_close(keymaster_dev);
204 keymaster_device_t *keymaster_dev = 0;
205 if (keymaster_init(&keymaster_dev)) {
269 rc = keymaster_dev->sign_data(keymaster_dev,
278 keymaster_close(keymaster_dev);