Home | History | Annotate | Download | only in keystore

Lines Matching refs:key_name

62 bool KeystoreClientImpl::encryptWithAuthentication(const std::string& key_name,
69 std::string encryption_key_name = key_name + kEncryptSuffix;
73 std::string authentication_key_name = key_name + kAuthenticateSuffix;
116 bool KeystoreClientImpl::decryptWithAuthentication(const std::string& key_name,
124 std::string authentication_key_name = key_name + kAuthenticateSuffix;
135 std::string encryption_key_name = key_name + kEncryptSuffix;
150 bool KeystoreClientImpl::oneShotOperation(KeyPurpose purpose, const std::string& key_name,
158 beginOperation(purpose, key_name, input_parameters, output_parameters, &handle);
185 KeyStoreNativeReturnCode KeystoreClientImpl::generateKey(const std::string& key_name,
189 String16 key_name16(key_name.data(), key_name.size());
204 KeystoreClientImpl::getKeyCharacteristics(const std::string& key_name,
207 String16 key_name16(key_name.data(), key_name.size());
220 KeyStoreNativeReturnCode KeystoreClientImpl::importKey(const std::string& key_name,
226 String16 key_name16(key_name.data(), key_name.size());
241 const std::string& key_name, std::string* export_data) {
242 String16 key_name16(key_name.data(), key_name.size());
250 KeyStoreNativeReturnCode KeystoreClientImpl::deleteKey(const std::string& key_name) {
251 String16 key_name16(key_name.data(), key_name.size());
259 KeyStoreNativeReturnCode KeystoreClientImpl::beginOperation(KeyPurpose purpose, const std::string& key_name,
264 String16 key_name16(key_name.data(), key_name.size());
339 bool KeystoreClientImpl::doesKeyExist(const std::string& key_name) {
340 String16 key_name16(key_name.data(), key_name.size());
352 android::String8 key_name(match);
353 key_name_list->push_back(prefix + std::string(key_name.string(), key_name.size()));
364 bool KeystoreClientImpl::createOrVerifyEncryptionKey(const std::string& key_name) {
365 bool key_exists = doesKeyExist(key_name);
368 key_name, &verified)) {
372 auto result = deleteKey(key_name);
389 generateKey(key_name, key_parameters, &hardware_enforced_characteristics,
402 bool KeystoreClientImpl::createOrVerifyAuthenticationKey(const std::string& key_name) {
403 bool key_exists = doesKeyExist(key_name);
406 if (!verifyAuthenticationKeyAttributes(key_name, &verified)) {
410 auto result = deleteKey(key_name);
427 generateKey(key_name, key_parameters, &hardware_enforced_characteristics,
440 bool KeystoreClientImpl::verifyEncryptionKeyAttributes(const std::string& key_name,
444 auto result = getKeyCharacteristics(key_name, &hardware_enforced_characteristics,
481 bool KeystoreClientImpl::verifyAuthenticationKeyAttributes(const std::string& key_name,
485 auto result = getKeyCharacteristics(key_name, &hardware_enforced_characteristics,