Home
last modified time | relevance | path

Searched refs:keymaster_purpose_t (Results 1 – 25 of 64) sorted by relevance

123

/system/keymaster/km_openssl/
Dhmac_operation.h27 HmacOperation(Key&& key, keymaster_purpose_t purpose, keymaster_digest_t digest,
63 virtual keymaster_purpose_t purpose() const = 0;
67 keymaster_purpose_t purpose() const { return KM_PURPOSE_SIGN; } in purpose()
71 keymaster_purpose_t purpose() const { return KM_PURPOSE_VERIFY; } in purpose()
Drsa_key.cpp35 bool RsaKey::SupportedMode(keymaster_purpose_t purpose, keymaster_padding_t padding) { in SupportedMode()
57 bool RsaKey::SupportedMode(keymaster_purpose_t purpose, keymaster_digest_t digest) { in SupportedMode()
Dblock_cipher_operation.h48 explicit BlockCipherOperationFactory(keymaster_purpose_t purpose) : purpose_(purpose) {} in BlockCipherOperationFactory()
66 const keymaster_purpose_t purpose_;
71 BlockCipherEvpOperation(keymaster_purpose_t purpose, keymaster_block_mode_t block_mode,
Daes_operation.h40 explicit AesOperationFactory(keymaster_purpose_t purpose) in AesOperationFactory()
Dtriple_des_operation.h40 explicit TripleDesOperationFactory(keymaster_purpose_t purpose) in TripleDesOperationFactory()
Dtriple_des_key.cpp31 OperationFactory* TripleDesKeyFactory::GetOperationFactory(keymaster_purpose_t purpose) const { in GetOperationFactory()
/system/keymaster/include/keymaster/
Dsoft_keymaster_device.h76 typedef std::pair<keymaster_algorithm_t, keymaster_purpose_t> AlgPurposePair;
81 bool FindUnsupportedDigest(keymaster_algorithm_t algorithm, keymaster_purpose_t purpose,
84 bool RequiresSoftwareDigesting(keymaster_algorithm_t algorithm, keymaster_purpose_t purpose,
106 keymaster_purpose_t purpose,
111 keymaster_purpose_t purpose,
116 keymaster_purpose_t purpose,
153 static keymaster_error_t begin(const keymaster1_device_t* dev, keymaster_purpose_t purpose,
210 static keymaster_error_t begin(const keymaster2_device_t* dev, keymaster_purpose_t purpose,
Doperation.h42 KeyType(keymaster_algorithm_t alg, keymaster_purpose_t purp) in KeyType()
46 keymaster_purpose_t purpose;
94 explicit Operation(keymaster_purpose_t purpose, AuthorizationSet&& hw_enforced, in Operation()
102 keymaster_purpose_t purpose() const { return purpose_; } in purpose()
149 const keymaster_purpose_t purpose_;
Dkeymaster_enforcement.h55 keymaster_error_t AuthorizeOperation(const keymaster_purpose_t purpose, const km_id_t keyid,
66 keymaster_error_t AuthorizeBegin(const keymaster_purpose_t purpose, const km_id_t keyid,
/system/keymaster/legacy_support/
Dkeymaster1_legacy_support.cpp58 keymaster_algorithm_t algorithm, keymaster_purpose_t purpose, in add_digests()
84 keymaster_purpose_t sig_purposes[] = {KM_PURPOSE_SIGN, KM_PURPOSE_VERIFY}; in map_digests()
95 keymaster_purpose_t crypt_purposes[] = {KM_PURPOSE_ENCRYPT, KM_PURPOSE_DECRYPT}; in map_digests()
117 static bool findUnsupportedDigest(keymaster_algorithm_t algorithm, keymaster_purpose_t purpose, in findUnsupportedDigest()
141 bool requiresSoftwareDigesting(keymaster_algorithm_t algorithm, keymaster_purpose_t purpose, in requiresSoftwareDigesting()
178 keymaster_purpose_t purpose = static_cast<keymaster_purpose_t>(entry.enumerated); in RequiresSoftwareDigesting()
202 keymaster_purpose_t purpose = static_cast<keymaster_purpose_t>(entry.enumerated); in RequiresSoftwareDigesting()
Decdsa_keymaster1_operation.h32 EcdsaKeymaster1WrappedOperation(keymaster_purpose_t purpose, const Keymaster1Engine* engine) in EcdsaKeymaster1WrappedOperation()
47 keymaster_purpose_t purpose_;
104 EcdsaKeymaster1OperationFactory(keymaster_purpose_t purpose, const Keymaster1Engine* engine) in EcdsaKeymaster1OperationFactory()
115 keymaster_purpose_t purpose_;
Drsa_keymaster1_operation.h31 RsaKeymaster1WrappedOperation(keymaster_purpose_t purpose, const Keymaster1Engine* engine) in RsaKeymaster1WrappedOperation()
46 keymaster_purpose_t purpose_;
103 RsaKeymaster1OperationFactory(keymaster_purpose_t purpose, const Keymaster1Engine* engine) in RsaKeymaster1OperationFactory()
114 keymaster_purpose_t purpose_;
Dkeymaster_passthrough_operation.h38 explicit KeymasterPassthroughOperation(keymaster_purpose_t purpose, in KeymasterPassthroughOperation()
96 keymaster_purpose_t purpose, in KeymasterPassthroughOperationFactory()
/system/keymaster/include/keymaster/km_openssl/
Drsa_operation.h37 keymaster_purpose_t purpose, keymaster_digest_t digest, in RsaOperation()
77 keymaster_purpose_t purpose, keymaster_digest_t digest,
141 keymaster_purpose_t purpose, keymaster_digest_t digest, in RsaCryptOperation()
196 virtual keymaster_purpose_t purpose() const = 0;
244 keymaster_purpose_t purpose() const override { return KM_PURPOSE_SIGN; } in purpose()
257 keymaster_purpose_t purpose() const override { return KM_PURPOSE_VERIFY; } in purpose()
270 keymaster_purpose_t purpose() const override { return KM_PURPOSE_ENCRYPT; } in purpose()
283 keymaster_purpose_t purpose() const override { return KM_PURPOSE_DECRYPT; } in purpose()
Decdsa_operation.h33 keymaster_purpose_t purpose, keymaster_digest_t digest, EVP_PKEY* key) in EcdsaOperation()
90 virtual keymaster_purpose_t purpose() const = 0;
98 keymaster_purpose_t purpose() const override { return KM_PURPOSE_SIGN; } in purpose()
108 keymaster_purpose_t purpose() const override { return KM_PURPOSE_VERIFY; } in purpose()
Drsa_key.h39 bool SupportedMode(keymaster_purpose_t purpose, keymaster_padding_t padding);
40 bool SupportedMode(keymaster_purpose_t purpose, keymaster_digest_t digest);
Daes_key.h41 OperationFactory* GetOperationFactory(keymaster_purpose_t purpose) const override;
Dhmac_key.h38 OperationFactory* GetOperationFactory(keymaster_purpose_t purpose) const override;
Dtriple_des_key.h39 OperationFactory* GetOperationFactory(keymaster_purpose_t purpose) const override;
/system/keymaster/tests/
Dandroid_keymaster_test_utils.h192 keymaster_error_t BeginOperation(keymaster_purpose_t purpose);
193 keymaster_error_t BeginOperation(keymaster_purpose_t purpose, const AuthorizationSet& input_set,
223 std::string ProcessMessage(keymaster_purpose_t purpose, const std::string& message);
224 std::string ProcessMessage(keymaster_purpose_t purpose, const std::string& message,
228 std::string ProcessMessage(keymaster_purpose_t purpose, const std::string& message,
232 std::string ProcessMessage(keymaster_purpose_t purpose, const std::string& message,
298 void CheckTripleDesTestVector(keymaster_purpose_t purpose, keymaster_block_mode_t mode,
/system/keymaster/android_keymaster/
Dkeymaster_enforcement.cpp81 static keymaster_error_t authorized_purpose(const keymaster_purpose_t purpose, in authorized_purpose()
98 inline bool is_origination_purpose(keymaster_purpose_t purpose) { in is_origination_purpose()
102 inline bool is_usage_purpose(keymaster_purpose_t purpose) { in is_usage_purpose()
116 keymaster_error_t KeymasterEnforcement::AuthorizeOperation(const keymaster_purpose_t purpose, in AuthorizeOperation()
200 keymaster_error_t KeymasterEnforcement::AuthorizeBegin(const keymaster_purpose_t purpose, in AuthorizeBegin()
/system/security/keystore/include/keystore/
Dkeystore_client_mock.h39 bool(keymaster_purpose_t purpose, const std::string& key_name,
63 MOCK_METHOD5(beginOperation, int32_t(keymaster_purpose_t purpose, const std::string& key_name,
/system/keymaster/ng/include/
DKeyMintUtils.h43 inline keymaster_purpose_t legacy_enum_conversion(const KeyPurpose value) { in legacy_enum_conversion()
44 return static_cast<keymaster_purpose_t>(value); in legacy_enum_conversion()
/system/keymaster/include/keymaster/legacy_support/
Dkeymaster1_legacy_support.h41 typedef std::pair<keymaster_algorithm_t, keymaster_purpose_t> AlgPurposePair;
122 OperationFactory* GetOperationFactory(keymaster_purpose_t /*purpose*/) const override { in GetOperationFactory() argument
/system/core/trusty/keymaster/include/trusty_keymaster/legacy/
Dtrusty_keymaster_device.h70 keymaster_error_t begin(keymaster_purpose_t purpose, const keymaster_key_blob_t* key,
131 static keymaster_error_t begin(const keymaster2_device_t* dev, keymaster_purpose_t purpose,

123