Searched refs:algorithm (Results 1 - 25 of 33) sorted by relevance

12

/system/keymaster/
H A Dandroid_keymaster.cpp62 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 Doperation.cpp52 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 Doperation.h42 : 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 Dopenssl_utils.cpp25 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 Dsoft_keymaster_device.cpp26 #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 Dec_key_factory.cpp142 keymaster_algorithm_t algorithm = KM_ALGORITHM_EC;
143 if (!updated_description->GetTagValue(TAG_ALGORITHM, &algorithm))
145 if (algorithm != KM_ALGORITHM_EC)
H A Drsa_key_factory.cpp161 keymaster_algorithm_t algorithm = KM_ALGORITHM_RSA; local
162 if (!updated_description->GetTagValue(TAG_ALGORITHM, &algorithm))
164 if (algorithm != KM_ALGORITHM_RSA)
H A Dkeymaster_enforcement.cpp79 keymaster_algorithm_t algorithm; local
80 return auth_set.GetTagValue(TAG_ALGORITHM, &algorithm) &&
81 (algorithm == KM_ALGORITHM_RSA || algorithm == KM_ALGORITHM_EC);
H A Dsoft_keymaster_context.cpp59 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 Dandroid_keymaster_messages_test.cpp87 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 Dandroid_keymaster_test_utils.h26 #include <algorithm>
161 virtual bool algorithm_in_hardware(keymaster_algorithm_t algorithm) const = 0;
H A Dkey_blob_test.cpp17 #include <algorithm>
/system/security/keystore/
H A Dauth_token_table.cpp22 #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 Doperation.cpp20 #include <algorithm>
/system/keymaster/include/keymaster/
H A Dkeymaster_context.h66 virtual KeyFactory* GetKeyFactory(keymaster_algorithm_t algorithm) const = 0;
67 virtual OperationFactory* GetOperationFactory(keymaster_algorithm_t algorithm,
H A Dsoft_keymaster_context.h39 KeyFactory* GetKeyFactory(keymaster_algorithm_t algorithm) const override;
40 OperationFactory* GetOperationFactory(keymaster_algorithm_t algorithm,
H A Dsoft_keymaster_device.h73 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 Dandroid_keymaster_messages.h132 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 Dcommand.cpp19 #include <algorithm>
H A Dread_elf.cpp21 #include <algorithm>
/system/core/adb/
H A Dadb_utils.cpp26 #include <algorithm>
/system/extras/perfprofd/quipper/base/
H A Dlogging.cc18 #include <algorithm>
/system/extras/memtrack/
H A Dmemtrack.cpp32 #include <algorithm>
/system/core/libsync/tests/
H A Dsync_test.cpp13 #include <algorithm>
/system/core/logd/
H A DLogStatistics.cpp17 #include <algorithm> // std::max

Completed in 634 milliseconds

12