• Home
  • Raw
  • Download

Lines Matching refs:string

238     const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string());  in encode_key_length()
249 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string()); in encode_key()
806 PKCS5_PBKDF2_HMAC_SHA1(reinterpret_cast<const char*>(pw.string()), pw.length(), salt, in generateKeyFromPassword()
1077 if (filepath8.string() == NULL) { in getKeyForName()
1082 ResponseCode responseCode = get(filepath8.string(), keyBlob, type, uid); in getKeyForName()
1092 responseCode = get(filepath8.string(), keyBlob, type, uid); in getKeyForName()
1106 if (!hasGrant(filepath8.string(), uid)) { in getKeyForName()
1111 return get(filepath8.string(), keyBlob, type, uid); in getKeyForName()
1411 ALOGW("Could not read %s", name8.string()); in get()
1448 return mKeyStore->put(filename.string(), &keyBlob, callingUid); in insert()
1468 ResponseCode responseCode = mKeyStore->get(filename.string(), &keyBlob, TYPE_GENERIC, in del()
1492 if (access(filename.string(), R_OK) == -1) { in exist()
1534 if (!strncmp(filename.string(), file->d_name, n)) { in saw()
1706 return mKeyStore->put(filename.string(), &keyBlob, callingUid); in generate()
1732 return mKeyStore->importKey(data, length, filename.string(), callingUid, flags); in import()
1746 ALOGV("sign %s from uid %d", name8.string(), callingUid); in sign()
1847 ALOGV("get_pubkey '%s' from uid %d", name8.string(), callingUid); in get_pubkey()
1891 ResponseCode responseCode = mKeyStore->get(filename.string(), &keyBlob, ::TYPE_KEY_PAIR, in del_key()
1934 if (access(filename.string(), R_OK) == -1) { in grant()
1938 mKeyStore->addGrant(filename.string(), granteeUid); in grant()
1958 if (access(filename.string(), R_OK) == -1) { in ungrant()
1962 return mKeyStore->removeGrant(filename.string(), granteeUid) ? ::NO_ERROR : ::KEY_NOT_FOUND; in ungrant()
1975 if (access(filename.string(), R_OK) == -1) { in getmtime()
1976 ALOGW("could not access %s for getmtime", filename.string()); in getmtime()
1980 int fd = TEMP_FAILURE_RETRY(open(filename.string(), O_NOFOLLOW, O_RDONLY)); in getmtime()
1982 ALOGW("could not open %s for getmtime", filename.string()); in getmtime()
1990 ALOGW("could not stat %s for getmtime", filename.string()); in getmtime()
2041 if (access(targetFile.string(), W_OK) != -1 || errno != ENOENT) { in duplicate()
2042 ALOGD("destination already exists: %s", targetFile.string()); in duplicate()
2047 ResponseCode responseCode = mKeyStore->get(sourceFile.string(), &keyBlob, TYPE_ANY, in duplicate()
2053 return mKeyStore->put(targetFile.string(), &keyBlob, callingUid); in duplicate()
2109 if (mKeyStore->get(filename.string(), &keyBlob, ::TYPE_ANY, callingUid) in clear_uid()
2111 ALOGW("couldn't open %s", filename.string()); in clear_uid()
2120 ALOGW("device couldn't remove %s", filename.string()); in clear_uid()
2127 ALOGW("couldn't unlink %s", filename.string()); in clear_uid()