/system/keymaster/legacy_support/ |
D | keymaster1_legacy_support.cpp | 57 …atic keymaster_error_t add_digests(const keymaster1_device_t* dev, keymaster_algorithm_t algorithm, in add_digests() argument 60 auto key = std::make_pair(algorithm, purpose); in add_digests() 65 dev->get_supported_digests(dev, algorithm, purpose, &digests, &digests_length); in add_digests() 86 for (auto algorithm : sig_algorithms) in map_digests() local 90 add_digests(dev, algorithm, purpose, map, &alg_purpose_supports_all); in map_digests() 98 for (auto algorithm : crypt_algorithms) in map_digests() local 102 add_digests(dev, algorithm, purpose, map, &alg_purpose_supports_all); in map_digests() 120 static bool findUnsupportedDigest(keymaster_algorithm_t algorithm, in findUnsupportedDigest() argument 125 auto supported_digests = digest_map.find(std::make_pair(algorithm, purpose)); in findUnsupportedDigest() 145 bool requiresSoftwareDigesting(keymaster_algorithm_t algorithm, keymaster_purpose_t purpose, in requiresSoftwareDigesting() argument [all …]
|
/system/keymaster/contexts/ |
D | keymaster2_passthrough_context.cpp | 43 KeyFactory* Keymaster2PassthroughContext::GetKeyFactory(keymaster_algorithm_t algorithm) const { in GetKeyFactory() 44 auto& result = factories_[algorithm]; in GetKeyFactory() 46 result.reset(new KeymasterPassthroughKeyFactory(engine_.get(), algorithm)); in GetKeyFactory() 50 OperationFactory* Keymaster2PassthroughContext::GetOperationFactory(keymaster_algorithm_t algorithm, in GetOperationFactory() argument 52 auto keyfactory = GetKeyFactory(algorithm); in GetOperationFactory() 97 keymaster_algorithm_t algorithm; in ParseKeyBlob() local 98 if (!hw_enforced.GetTagValue(TAG_ALGORITHM, &algorithm) && in ParseKeyBlob() 99 !sw_enforced.GetTagValue(TAG_ALGORITHM, &algorithm)) { in ParseKeyBlob() 104 auto factory = GetKeyFactory(algorithm); in ParseKeyBlob()
|
D | soft_attestation_cert.cpp | 287 const keymaster_key_blob_t* getAttestationKey(keymaster_algorithm_t algorithm, keymaster_error_t* e… in getAttestationKey() argument 291 switch (algorithm) { in getAttestationKey() 306 keymaster_algorithm_t algorithm, keymaster_error_t* error) { in getAttestationChain() argument 310 switch(algorithm) { in getAttestationChain()
|
D | keymaster1_passthrough_context.cpp | 55 KeyFactory* Keymaster1PassthroughContext::GetKeyFactory(keymaster_algorithm_t algorithm) const { in GetKeyFactory() 56 auto& result = factories_[algorithm]; in GetKeyFactory() 58 switch(algorithm) { in GetKeyFactory() 82 OperationFactory* Keymaster1PassthroughContext::GetOperationFactory(keymaster_algorithm_t algorithm, in GetOperationFactory() argument 84 auto keyfactory = GetKeyFactory(algorithm); in GetOperationFactory() 165 keymaster_algorithm_t algorithm; in ParseKeyBlob() local 166 if (!hw_enforced.GetTagValue(TAG_ALGORITHM, &algorithm) && in ParseKeyBlob() 167 !sw_enforced.GetTagValue(TAG_ALGORITHM, &algorithm)) { in ParseKeyBlob() 170 auto factory = GetKeyFactory(algorithm); in ParseKeyBlob()
|
D | soft_attestation_cert.h | 25 const keymaster_key_blob_t* getAttestationKey(keymaster_algorithm_t algorithm, 27 const keymaster_cert_chain_t* getAttestationChain(keymaster_algorithm_t algorithm,
|
D | soft_keymaster_device.cpp | 110 static keymaster_error_t add_digests(keymaster1_device_t* dev, keymaster_algorithm_t algorithm, in add_digests() argument 113 auto key = std::make_pair(algorithm, purpose); in add_digests() 118 dev->get_supported_digests(dev, algorithm, purpose, &digests, &digests_length); in add_digests() 138 for (auto algorithm : sig_algorithms) in map_digests() local 142 add_digests(dev, algorithm, purpose, map, &alg_purpose_supports_all); in map_digests() 150 for (auto algorithm : crypt_algorithms) in map_digests() local 154 add_digests(dev, algorithm, purpose, map, &alg_purpose_supports_all); in map_digests() 443 keymaster_algorithm_t algorithm, in get_supported_block_modes() argument 455 return km1_dev->get_supported_block_modes(km1_dev, algorithm, purpose, modes, modes_length); in get_supported_block_modes() 458 request.algorithm = algorithm; in get_supported_block_modes() [all …]
|
D | pure_soft_keymaster_context.cpp | 74 KeyFactory* PureSoftKeymasterContext::GetKeyFactory(keymaster_algorithm_t algorithm) const { in GetKeyFactory() 75 switch (algorithm) { in GetKeyFactory() 100 OperationFactory* PureSoftKeymasterContext::GetOperationFactory(keymaster_algorithm_t algorithm, in GetOperationFactory() argument 102 KeyFactory* key_factory = GetKeyFactory(algorithm); in GetOperationFactory() 171 keymaster_algorithm_t algorithm; in ParseKeyBlob() local 172 if (!hw_enforced.GetTagValue(TAG_ALGORITHM, &algorithm) && in ParseKeyBlob() 173 !sw_enforced.GetTagValue(TAG_ALGORITHM, &algorithm)) { in ParseKeyBlob() 176 auto factory = GetKeyFactory(algorithm); in ParseKeyBlob()
|
D | soft_keymaster_context.cpp | 109 KeyFactory* SoftKeymasterContext::GetKeyFactory(keymaster_algorithm_t algorithm) const { in GetKeyFactory() 110 switch (algorithm) { in GetKeyFactory() 135 OperationFactory* SoftKeymasterContext::GetOperationFactory(keymaster_algorithm_t algorithm, in GetOperationFactory() argument 137 KeyFactory* key_factory = GetKeyFactory(algorithm); in GetOperationFactory() 287 keymaster_algorithm_t algorithm; in ParseKeyBlob() local 288 if (!hw_enforced.GetTagValue(TAG_ALGORITHM, &algorithm) && in ParseKeyBlob() 289 !sw_enforced.GetTagValue(TAG_ALGORITHM, &algorithm)) { in ParseKeyBlob() 292 auto factory = GetKeyFactory(algorithm); in ParseKeyBlob()
|
/system/keymaster/android_keymaster/ |
D | android_keymaster.cpp | 78 bool check_supported(const KeymasterContext& context, keymaster_algorithm_t algorithm, in check_supported() argument 80 if (context.GetKeyFactory(algorithm) == nullptr) { in check_supported() 115 void GetSupported(const KeymasterContext& context, keymaster_algorithm_t algorithm, in GetSupported() argument 119 if (response == nullptr || !check_supported(context, algorithm, response)) in GetSupported() 122 const OperationFactory* factory = context.GetOperationFactory(algorithm, purpose); in GetSupported() 135 GetSupported(*context_, request.algorithm, request.purpose, in SupportedBlockModes() 141 GetSupported(*context_, request.algorithm, request.purpose, in SupportedPaddingModes() 147 GetSupported(*context_, request.algorithm, request.purpose, &OperationFactory::SupportedDigests, in SupportedDigests() 153 if (response == nullptr || !check_supported(*context_, request.algorithm, response)) in SupportedImportFormats() 158 context_->GetKeyFactory(request.algorithm)->SupportedImportFormats(&count); in SupportedImportFormats() [all …]
|
D | operation.cpp | 51 inline bool is_public_key_algorithm(keymaster_algorithm_t algorithm) { in is_public_key_algorithm() argument 52 switch (algorithm) { in is_public_key_algorithm() 70 if (!is_public_key_algorithm(key_type.algorithm)) in is_public_key_operation()
|
/system/keymaster/include/keymaster/ |
D | soft_keymaster_device.h | 89 bool FindUnsupportedDigest(keymaster_algorithm_t algorithm, keymaster_purpose_t purpose, 92 bool RequiresSoftwareDigesting(keymaster_algorithm_t algorithm, keymaster_purpose_t purpose, 96 static void StoreDefaultNewKeyParams(keymaster_algorithm_t algorithm, 99 keymaster_algorithm_t* algorithm); 113 keymaster_algorithm_t algorithm, 118 keymaster_algorithm_t algorithm, 123 keymaster_algorithm_t algorithm, 128 keymaster_algorithm_t algorithm, 132 keymaster_algorithm_t algorithm,
|
D | operation.h | 43 : algorithm(alg), purpose(purp) {} in KeyType() 45 keymaster_algorithm_t algorithm; member 49 return algorithm == rhs.algorithm && purpose == rhs.purpose;
|
D | keymaster_context.h | 86 virtual const KeyFactory* GetKeyFactory(keymaster_algorithm_t algorithm) const = 0; 87 virtual const OperationFactory* GetOperationFactory(keymaster_algorithm_t algorithm,
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | fsverity_init.te | 22 # When kernel requests an algorithm, the crypto API first looks for an 23 # already registered algorithm with that name. If it fails, the kernel creates 24 # an implementation of the algorithm from templates.
|
/system/sepolicy/private/ |
D | fsverity_init.te | 22 # When kernel requests an algorithm, the crypto API first looks for an 23 # already registered algorithm with that name. If it fails, the kernel creates 24 # an implementation of the algorithm from templates.
|
/system/security/keystore/ |
D | auth_token_table.cpp | 97 inline bool is_secret_key_operation(Algorithm algorithm, KeyPurpose purpose) { in is_secret_key_operation() argument 98 if ((algorithm != Algorithm::RSA && algorithm != Algorithm::EC)) return true; in is_secret_key_operation() 104 auto algorithm = defaultOr(key_info.GetTagValue(TAG_ALGORITHM), Algorithm::AES); in KeyRequiresAuthentication() local 105 return is_secret_key_operation(algorithm, purpose) && in KeyRequiresAuthentication() 110 auto algorithm = defaultOr(key_info.GetTagValue(TAG_ALGORITHM), Algorithm::AES); in KeyRequiresAuthPerOperation() local 111 return is_secret_key_operation(algorithm, purpose) && key_info.find(Tag::AUTH_TIMEOUT) == -1; in KeyRequiresAuthPerOperation()
|
D | operation_config.proto | 25 // What type of encryption algorithm is the key being used in the op for. 26 optional string algorithm = 1; field 46 // Keep track of the digest algorithm being used.
|
/system/keymaster/tests/ |
D | wrapped_key_test.cpp | 98 keymaster_algorithm_t algorithm; in TEST() local 99 auth_list.GetTagValue(TAG_ALGORITHM, &algorithm); in TEST() 100 EXPECT_EQ(algorithm, KM_ALGORITHM_AES); in TEST()
|
/system/keymaster/include/keymaster/contexts/ |
D | keymaster2_passthrough_context.h | 53 KeyFactory* GetKeyFactory(keymaster_algorithm_t algorithm) const override; 54 OperationFactory* GetOperationFactory(keymaster_algorithm_t algorithm,
|
D | keymaster1_passthrough_context.h | 60 KeyFactory* GetKeyFactory(keymaster_algorithm_t algorithm) const override; 61 OperationFactory* GetOperationFactory(keymaster_algorithm_t algorithm,
|
D | pure_soft_keymaster_context.h | 55 KeyFactory* GetKeyFactory(keymaster_algorithm_t algorithm) const override; 56 OperationFactory* GetOperationFactory(keymaster_algorithm_t algorithm,
|
/system/core/fs_mgr/libfs_avb/include/fs_avb/ |
D | fs_avb.h | 38 VBMetaInfo(std::string digest_value, HashAlgorithm algorithm, size_t size) in VBMetaInfo() 39 : digest(std::move(digest_value)), hash_algorithm(algorithm), total_size(size) {} in VBMetaInfo()
|
/system/keymaster/include/keymaster/legacy_support/ |
D | keymaster_passthrough_key.h | 40 KeymasterPassthroughKeyFactory(const engine_t* engine, keymaster_algorithm_t algorithm) in KeymasterPassthroughKeyFactory() argument 41 : KeyFactory(), engine_(engine), algorithm_(algorithm) {} in KeymasterPassthroughKeyFactory()
|
/system/keymaster/km_openssl/ |
D | openssl_utils.cpp | 66 static int convert_to_evp(keymaster_algorithm_t algorithm) { in convert_to_evp() argument 67 switch (algorithm) { in convert_to_evp()
|
D | rsa_key_factory.cpp | 165 keymaster_algorithm_t algorithm = KM_ALGORITHM_RSA; in UpdateImportKeyDescription() local 166 if (!updated_description->GetTagValue(TAG_ALGORITHM, &algorithm)) in UpdateImportKeyDescription() 168 if (algorithm != KM_ALGORITHM_RSA) in UpdateImportKeyDescription()
|