/system/keymaster/ |
H A D | android_keymaster.cpp | 62 bool check_supported(const KeymasterContext& context, keymaster_algorithm_t algorithm, argument 64 if (context.GetKeyFactory(algorithm) == NULL) { 99 void GetSupported(const KeymasterContext& context, keymaster_algorithm_t algorithm, argument 103 if (response == NULL || !check_supported(context, algorithm, response)) 106 const OperationFactory* factory = context.GetOperationFactory(algorithm, purpose); 119 GetSupported(*context_, request.algorithm, request.purpose, 125 GetSupported(*context_, request.algorithm, request.purpose, 131 GetSupported(*context_, request.algorithm, request.purpose, &OperationFactory::SupportedDigests, 137 if (response == NULL || !check_supported(*context_, request.algorithm, response)) 142 context_->GetKeyFactory(request.algorithm) 198 GetKeyFactory(const KeymasterContext& context, const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, keymaster_algorithm_t* algorithm, keymaster_error_t* error) argument [all...] |
H A D | operation.cpp | 52 inline bool is_public_key_algorithm(keymaster_algorithm_t algorithm) { argument 53 switch (algorithm) { 70 if (!is_public_key_algorithm(key_type.algorithm))
|
H A D | operation.h | 42 : algorithm(alg), purpose(purp) {} 44 keymaster_algorithm_t algorithm; member in struct:keymaster::OperationFactory::KeyType 48 return algorithm == rhs.algorithm && purpose == rhs.purpose;
|
H A D | openssl_utils.cpp | 25 static int convert_to_evp(keymaster_algorithm_t algorithm) { argument 26 switch (algorithm) { 52 LOG_E("EVP key algorithm was %d, not the expected %d", EVP_PKEY_type((*pkey)->type),
|
H A D | soft_keymaster_device.cpp | 26 #include <algorithm> 251 keymaster_algorithm_t algorithm; local 252 keymaster_error_t err = GetPkcs8KeyAlgorithm(key, key_length, &algorithm); 255 request.key_description.push_back(TAG_ALGORITHM, algorithm); 256 StoreDefaultNewKeyParams(algorithm, &request.key_description); 281 keymaster_algorithm_t* algorithm) { 302 *algorithm = KM_ALGORITHM_RSA; 305 *algorithm = KM_ALGORITHM_EC; 308 LOG_E("Unsupported algorithm %d", EVP_PKEY_type(pkey->type)); 496 keymaster_algorithm_t algorithm, 280 GetPkcs8KeyAlgorithm(const uint8_t* key, size_t key_length, keymaster_algorithm_t* algorithm) argument 495 get_supported_block_modes(const keymaster1_device_t* dev, keymaster_algorithm_t algorithm, keymaster_purpose_t purpose, keymaster_block_mode_t** modes, size_t* modes_length) argument 527 get_supported_padding_modes(const keymaster1_device_t* dev, keymaster_algorithm_t algorithm, keymaster_purpose_t purpose, keymaster_padding_t** modes, size_t* modes_length) argument 558 get_supported_digests(const keymaster1_device_t* dev, keymaster_algorithm_t algorithm, keymaster_purpose_t purpose, keymaster_digest_t** digests, size_t* digests_length) argument 589 get_supported_import_formats( const keymaster1_device_t* dev, keymaster_algorithm_t algorithm, keymaster_key_format_t** formats, size_t* formats_length) argument 618 get_supported_export_formats( const keymaster1_device_t* dev, keymaster_algorithm_t algorithm, keymaster_key_format_t** formats, size_t* formats_length) argument 947 StoreDefaultNewKeyParams(keymaster_algorithm_t algorithm, AuthorizationSet* auth_set) argument [all...] |
H A D | ec_key_factory.cpp | 142 keymaster_algorithm_t algorithm = KM_ALGORITHM_EC; 143 if (!updated_description->GetTagValue(TAG_ALGORITHM, &algorithm)) 145 if (algorithm != KM_ALGORITHM_EC)
|
H A D | rsa_key_factory.cpp | 161 keymaster_algorithm_t algorithm = KM_ALGORITHM_RSA; local 162 if (!updated_description->GetTagValue(TAG_ALGORITHM, &algorithm)) 164 if (algorithm != KM_ALGORITHM_RSA)
|
H A D | keymaster_enforcement.cpp | 79 keymaster_algorithm_t algorithm; local 80 return auth_set.GetTagValue(TAG_ALGORITHM, &algorithm) && 81 (algorithm == KM_ALGORITHM_RSA || algorithm == KM_ALGORITHM_EC);
|
H A D | soft_keymaster_context.cpp | 59 KeyFactory* SoftKeymasterContext::GetKeyFactory(keymaster_algorithm_t algorithm) const { 60 switch (algorithm) { 83 OperationFactory* SoftKeymasterContext::GetOperationFactory(keymaster_algorithm_t algorithm, argument 85 KeyFactory* key_factory = GetKeyFactory(algorithm);
|
H A D | android_keymaster_messages_test.cpp | 87 req.algorithm = KM_ALGORITHM_EC; 90 EXPECT_EQ(KM_ALGORITHM_EC, deserialized->algorithm); 97 req.algorithm = KM_ALGORITHM_EC; 101 EXPECT_EQ(KM_ALGORITHM_EC, deserialized->algorithm);
|
H A D | android_keymaster_test_utils.h | 26 #include <algorithm> 161 virtual bool algorithm_in_hardware(keymaster_algorithm_t algorithm) const = 0;
|
H A D | key_blob_test.cpp | 17 #include <algorithm>
|
/system/security/keystore/ |
H A D | auth_token_table.cpp | 22 #include <algorithm> 63 inline bool is_secret_key_operation(keymaster_algorithm_t algorithm, keymaster_purpose_t purpose) { argument 64 if ((algorithm != KM_ALGORITHM_RSA || algorithm != KM_ALGORITHM_EC)) 73 keymaster_algorithm_t algorithm = KM_ALGORITHM_AES; local 74 key_info.GetTagValue(TAG_ALGORITHM, &algorithm); 75 return is_secret_key_operation(algorithm, purpose) && key_info.find(TAG_NO_AUTH_REQUIRED) == -1; 80 keymaster_algorithm_t algorithm = KM_ALGORITHM_AES; local 81 key_info.GetTagValue(TAG_ALGORITHM, &algorithm); 82 return is_secret_key_operation(algorithm, purpos [all...] |
H A D | operation.cpp | 20 #include <algorithm>
|
/system/keymaster/include/keymaster/ |
H A D | keymaster_context.h | 66 virtual KeyFactory* GetKeyFactory(keymaster_algorithm_t algorithm) const = 0; 67 virtual OperationFactory* GetOperationFactory(keymaster_algorithm_t algorithm,
|
H A D | soft_keymaster_context.h | 39 KeyFactory* GetKeyFactory(keymaster_algorithm_t algorithm) const override; 40 OperationFactory* GetOperationFactory(keymaster_algorithm_t algorithm,
|
H A D | soft_keymaster_device.h | 73 static void StoreDefaultNewKeyParams(keymaster_algorithm_t algorithm, 76 keymaster_algorithm_t* algorithm); 110 keymaster_algorithm_t algorithm, 115 keymaster_algorithm_t algorithm, 120 keymaster_algorithm_t algorithm, 125 keymaster_algorithm_t algorithm, 129 keymaster_algorithm_t algorithm,
|
H A D | android_keymaster_messages.h | 132 return append_uint32_to_buf(buf, end, algorithm); 135 return copy_uint32_from_buf(buf_ptr, end, &algorithm); 138 keymaster_algorithm_t algorithm; member in struct:keymaster::SupportedByAlgorithmRequest 150 buf = append_uint32_to_buf(buf, end, algorithm); 154 return copy_uint32_from_buf(buf_ptr, end, &algorithm) && 158 keymaster_algorithm_t algorithm; member in struct:keymaster::SupportedByAlgorithmAndPurposeRequest
|
/system/extras/simpleperf/ |
H A D | command.cpp | 19 #include <algorithm>
|
H A D | read_elf.cpp | 21 #include <algorithm>
|
/system/core/adb/ |
H A D | adb_utils.cpp | 26 #include <algorithm>
|
/system/extras/perfprofd/quipper/base/ |
H A D | logging.cc | 18 #include <algorithm>
|
/system/extras/memtrack/ |
H A D | memtrack.cpp | 32 #include <algorithm>
|
/system/core/libsync/tests/ |
H A D | sync_test.cpp | 13 #include <algorithm>
|
/system/core/logd/ |
H A D | LogStatistics.cpp | 17 #include <algorithm> // std::max
|