Lines Matching defs:rc

104     int rc;
107 rc = hw_get_module_by_class(KEYSTORE_HARDWARE_MODULE_ID, NULL, &mod);
108 if (rc) {
113 rc = keymaster_open(mod, dev);
114 if (rc) {
116 KEYSTORE_HARDWARE_MODULE_ID, strerror(-rc));
124 return rc;
997 ResponseCode rc = keyBlob->readBlob(filename, userState->getDecryptionKey(),
999 if (rc != NO_ERROR) {
1000 return rc;
1010 if ((rc = this->put(filename, keyBlob, uid)) != NO_ERROR
1011 || (rc = keyBlob->readBlob(filename, userState->getDecryptionKey(),
1013 return rc;
1022 if (rc == NO_ERROR && type == TYPE_KEY_PAIR
1031 rc = get(filename, keyBlob, TYPE_KEY_PAIR, uid);
1040 return rc;
1080 int rc;
1088 rc = mDevice->import_keypair(mDevice, key, keyLen, &data, &dataLength);
1089 if (rc) {
1092 rc = openssl_import_keypair(mDevice, key, keyLen, &data, &dataLength);
1096 if (rc) {
1097 ALOGE("Error while importing keypair: %d", rc);
1311 ResponseCode rc = importKey(pkcs8key.get(), len, filename, uid,
1313 if (rc != NO_ERROR) {
1314 return rc;
1614 ResponseCode rc = mKeyStore->reset(callingUid) ? ::NO_ERROR : ::SYSTEM_ERROR;
1624 return rc;
1632 return rc;
1734 int rc;
1783 rc = device->generate_keypair(device, TYPE_DSA, &dsa_params, &data, &dataLength);
1786 rc = openssl_generate_keypair(device, TYPE_DSA, &dsa_params, &data, &dataLength);
1801 rc = device->generate_keypair(device, TYPE_EC, &ec_params, &data, &dataLength);
1804 rc = openssl_generate_keypair(device, TYPE_EC, &ec_params, &data, &dataLength);
1841 rc = device->generate_keypair(device, TYPE_RSA, &rsa_params, &data, &dataLength);
1844 rc = -1;
1847 if (rc) {
1901 int rc;
1925 rc = openssl_sign_data(device, &params, keyBlob.getValue(), keyBlob.getLength(), data,
1928 rc = device->sign_data(device, &params, keyBlob.getValue(), keyBlob.getLength(), data,
1931 if (rc) {
1955 int rc;
1977 rc = openssl_verify_data(device, &params, keyBlob.getValue(), keyBlob.getLength(), data,
1980 rc = device->verify_data(device, &params, keyBlob.getValue(), keyBlob.getLength(), data,
1983 if (rc) {
2029 int rc;
2031 rc = openssl_get_keypair_public(device, keyBlob.getValue(), keyBlob.getLength(), pubkey,
2034 rc = device->get_keypair_public(device, keyBlob.getValue(), keyBlob.getLength(), pubkey,
2037 if (rc) {
2067 ResponseCode rc = ::NO_ERROR;
2071 rc = ::SYSTEM_ERROR;
2076 rc = ::SYSTEM_ERROR;
2081 if (rc != ::NO_ERROR) {
2082 return rc;
2259 ResponseCode rc = ::NO_ERROR;
2289 rc = ::SYSTEM_ERROR;
2296 rc = ::SYSTEM_ERROR;
2302 return rc;