Home
last modified time | relevance | path

Searched refs:key_name (Results 1 – 12 of 12) sorted by relevance

/system/security/keystore/include/keystore/
Dkeystore_client_impl.h38 bool encryptWithAuthentication(const std::string& key_name, const std::string& data,
40 bool decryptWithAuthentication(const std::string& key_name, const std::string& encrypted_data,
42 bool oneShotOperation(KeyPurpose purpose, const std::string& key_name,
50 generateKey(const std::string& key_name, const keystore::AuthorizationSet& key_parameters,
54 getKeyCharacteristics(const std::string& key_name,
58 importKey(const std::string& key_name, const keystore::AuthorizationSet& key_parameters,
62 KeyStoreNativeReturnCode exportKey(KeyFormat export_format, const std::string& key_name,
64 KeyStoreNativeReturnCode deleteKey(const std::string& key_name) override;
66 KeyStoreNativeReturnCode beginOperation(KeyPurpose purpose, const std::string& key_name,
82 bool doesKeyExist(const std::string& key_name) override;
[all …]
Dkeystore_client_mock.h33 bool(const std::string& key_name, const std::string& data,
36 bool(const std::string& key_name, const std::string& encrypted_data,
39 bool(keymaster_purpose_t purpose, const std::string& key_name,
45 int32_t(const std::string& key_name,
50 int32_t(const std::string& key_name,
54 int32_t(const std::string& key_name,
60 const std::string& key_name, std::string* export_data));
61 MOCK_METHOD1(deleteKey, int32_t(const std::string& key_name));
63 MOCK_METHOD5(beginOperation, int32_t(keymaster_purpose_t purpose, const std::string& key_name,
78 MOCK_METHOD1(doesKeyExist, bool(const std::string& key_name));
Dkeystore_client.h64 virtual bool encryptWithAuthentication(const std::string& key_name, const std::string& data,
70 virtual bool decryptWithAuthentication(const std::string& key_name,
79 virtual bool oneShotOperation(KeyPurpose purpose, const std::string& key_name,
97 generateKey(const std::string& key_name, const keystore::AuthorizationSet& key_parameters,
105 getKeyCharacteristics(const std::string& key_name,
115 importKey(const std::string& key_name, const keystore::AuthorizationSet& key_parameters,
123 virtual KeyStoreNativeReturnCode exportKey(KeyFormat export_format, const std::string& key_name,
128 virtual KeyStoreNativeReturnCode deleteKey(const std::string& key_name) = 0;
140 beginOperation(KeyPurpose purpose, const std::string& key_name,
170 virtual bool doesKeyExist(const std::string& key_name) = 0;
/system/security/keystore/
Dkeystore_client_impl.cpp67 bool KeystoreClientImpl::encryptWithAuthentication(const std::string& key_name, in encryptWithAuthentication() argument
74 std::string encryption_key_name = key_name + kEncryptSuffix; in encryptWithAuthentication()
78 std::string authentication_key_name = key_name + kAuthenticateSuffix; in encryptWithAuthentication()
121 bool KeystoreClientImpl::decryptWithAuthentication(const std::string& key_name, in decryptWithAuthentication() argument
129 std::string authentication_key_name = key_name + kAuthenticateSuffix; in decryptWithAuthentication()
140 std::string encryption_key_name = key_name + kEncryptSuffix; in decryptWithAuthentication()
155 bool KeystoreClientImpl::oneShotOperation(KeyPurpose purpose, const std::string& key_name, in oneShotOperation() argument
162 auto result = beginOperation(purpose, key_name, input_parameters, output_parameters, &handle); in oneShotOperation()
205 KeystoreClientImpl::generateKey(const std::string& key_name, const AuthorizationSet& key_parameters, in generateKey() argument
208 String16 key_name16(key_name.data(), key_name.size()); in generateKey()
[all …]
Dkeystore_cli_v2.cpp371 for (const auto& key_name : key_list) { in List() local
372 printf(" %s\n", key_name.c_str()); in List()
463 int Encrypt(const std::string& key_name, const std::string& input_filename, in Encrypt() argument
468 if (!keystore->encryptWithAuthentication(key_name, input, flags, &output)) { in Encrypt()
476 int Decrypt(const std::string& key_name, const std::string& input_filename, in Decrypt() argument
481 if (!keystore->decryptWithAuthentication(key_name, input, &output)) { in Decrypt()
/system/apex/apexd/
Dapex_key.cpp108 StatusOr<const std::string> getApexKey(const std::string& key_name) { in getApexKey() argument
109 if (gScannedApexKeys.find(key_name) == gScannedApexKeys.end()) { in getApexKey()
111 StringLog() << "No key found for package " << key_name); in getApexKey()
113 return StatusOr<const std::string>(gScannedApexKeys[key_name]); in getApexKey()
Dapex_key.h28 StatusOr<const std::string> getApexKey(const std::string& key_name);
Dapex_file.cpp300 StatusOr<std::string> key_name = getPublicKeyName(apex, data, length); in verifyVbMetaSignature() local
301 if (!key_name.Ok()) { in verifyVbMetaSignature()
302 return key_name.ErrorStatus(); in verifyVbMetaSignature()
305 StatusOr<const std::string> public_key = getApexKey(*key_name); in verifyVbMetaSignature()
/system/apex/apexer/
Dapexer.py230 key_name = os.path.basename(os.path.splitext(args.key)[0])
232 if manifest_apex.name != key_name:
233 … print("package name '" + manifest_apex.name + "' does not match with key name '" + key_name + "'")
299 cmd.extend(['--prop', "apex.key:" + key_name])
/system/bt/stack/smp/
Dsmp_int.h494 const char* key_name,
498 const char* key_name, in smp_debug_print_nbyte_little_endian() argument
500 smp_debug_print_nbyte_little_endian(const_cast<uint8_t*>(p.data()), key_name, in smp_debug_print_nbyte_little_endian()
505 extern void print128(const Octet16& x, const uint8_t* key_name);
Dsmp_keys.cc57 void smp_debug_print_nbyte_little_endian(uint8_t* p, const char* key_name, in smp_debug_print_nbyte_little_endian() argument
65 SMP_TRACE_DEBUG("%s(LSB ~ MSB):", key_name); in smp_debug_print_nbyte_little_endian()
81 const char* key_name, in smp_debug_print_nbyte_little_endian() argument
83 smp_debug_print_nbyte_little_endian(const_cast<uint8_t*>(p.data()), key_name, in smp_debug_print_nbyte_little_endian()
87 void smp_debug_print_nbyte_big_endian(uint8_t* p, const char* key_name, in smp_debug_print_nbyte_big_endian() argument
92 SMP_TRACE_DEBUG("%s(MSB ~ LSB):", key_name); in smp_debug_print_nbyte_big_endian()
Dsmp_utils.cc1559 void print128(const Octet16& x, const uint8_t* key_name) { in print128() argument
1563 DVLOG(2) << key_name << " (MSB ~ LSB) = "; in print128()