Lines Matching defs:device

141         ALOGE("could not open keymaster device in %s (%s)",
449 KeyStore(Entropy* entropy, keymaster_device_t* device)
451 , mDevice(device)
1004 const keymaster_device_t* device = keyStore->getDevice();
1005 if (device == NULL) {
1006 ALOGE("No keymaster device!");
1010 if (device->delete_all == NULL) {
1011 ALOGV("keymaster device doesn't implement delete_all");
1015 if (device->delete_all(device)) {
1068 const keymaster_device_t* device = keyStore->getDevice();
1069 if (device == NULL) {
1073 if (device->generate_keypair == NULL) {
1081 rc = device->generate_keypair(device, TYPE_RSA, &rsa_params, &data, &dataLength);
1123 const keymaster_device_t* device = keyStore->getDevice();
1124 if (device == NULL) {
1128 if (device->get_keypair_public == NULL) {
1129 ALOGE("device has no get_keypair_public implementation!");
1136 int rc = device->get_keypair_public(device, keyBlob.getValue(), keyBlob.getLength(), &data,
1161 const keymaster_device_t* device = keyStore->getDevice();
1162 if (device == NULL) {
1165 // A device doesn't have to implement delete_keypair.
1166 if (device->delete_keypair != NULL) {
1167 if (device->delete_keypair(device, keyBlob.getValue(), keyBlob.getLength())) {
1194 const keymaster_device_t* device = keyStore->getDevice();
1195 if (device == NULL) {
1196 ALOGE("no keymaster device; cannot sign");
1200 if (device->sign_data == NULL) {
1201 ALOGE("device doesn't implement signing");
1209 rc = device->sign_data(device, &params, keyBlob.getValue(), keyBlob.getLength(),
1212 ALOGW("device couldn't sign data");
1231 const keymaster_device_t* device = keyStore->getDevice();
1232 if (device == NULL) {
1236 if (device->verify_data == NULL) {
1244 rc = device->verify_data(device, &params, keyBlob.getValue(), keyBlob.getLength(),