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()
53 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.cpp33 OperationFactory* TripleDesKeyFactory::GetOperationFactory(keymaster_purpose_t purpose) const { in GetOperationFactory()
/system/keymaster/include/keymaster/
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()
127 const keymaster_purpose_t purpose_;
Dsoft_keymaster_device.h84 typedef std::pair<keymaster_algorithm_t, keymaster_purpose_t> AlgPurposePair;
89 bool FindUnsupportedDigest(keymaster_algorithm_t algorithm, keymaster_purpose_t purpose,
92 bool RequiresSoftwareDigesting(keymaster_algorithm_t algorithm, keymaster_purpose_t purpose,
114 keymaster_purpose_t purpose,
119 keymaster_purpose_t purpose,
124 keymaster_purpose_t purpose,
161 static keymaster_error_t begin(const keymaster1_device_t* dev, keymaster_purpose_t purpose,
218 static keymaster_error_t begin(const keymaster2_device_t* dev, 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,
Dkey_factory.h57 virtual OperationFactory* GetOperationFactory(keymaster_purpose_t purpose) const = 0;
/system/keymaster/legacy_support/
Dkeymaster1_legacy_support.cpp58 keymaster_purpose_t purpose, in add_digests()
85 keymaster_purpose_t sig_purposes[] = {KM_PURPOSE_SIGN, KM_PURPOSE_VERIFY}; in map_digests()
97 keymaster_purpose_t crypt_purposes[] = {KM_PURPOSE_ENCRYPT, KM_PURPOSE_DECRYPT}; in map_digests()
121 keymaster_purpose_t purpose, in findUnsupportedDigest()
145 bool requiresSoftwareDigesting(keymaster_algorithm_t algorithm, keymaster_purpose_t purpose, in requiresSoftwareDigesting()
182 keymaster_purpose_t purpose = static_cast<keymaster_purpose_t>(entry.enumerated); in RequiresSoftwareDigesting()
206 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_;
106 EcdsaKeymaster1OperationFactory(keymaster_purpose_t purpose, const Keymaster1Engine* engine) in EcdsaKeymaster1OperationFactory()
117 keymaster_purpose_t purpose_;
Drsa_keymaster1_operation.h32 RsaKeymaster1WrappedOperation(keymaster_purpose_t purpose, const Keymaster1Engine* engine) in RsaKeymaster1WrappedOperation()
47 keymaster_purpose_t purpose_;
106 RsaKeymaster1OperationFactory(keymaster_purpose_t purpose, const Keymaster1Engine* engine) in RsaKeymaster1OperationFactory()
117 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()
188 virtual keymaster_purpose_t purpose() const = 0;
232 keymaster_purpose_t purpose() const override { return KM_PURPOSE_SIGN; } in purpose()
245 keymaster_purpose_t purpose() const override { return KM_PURPOSE_VERIFY; } in purpose()
258 keymaster_purpose_t purpose() const override { return KM_PURPOSE_ENCRYPT; } in purpose()
271 keymaster_purpose_t purpose() const override { return KM_PURPOSE_DECRYPT; } in purpose()
Drsa_key.h35 bool SupportedMode(keymaster_purpose_t purpose, keymaster_padding_t padding);
36 bool SupportedMode(keymaster_purpose_t purpose, keymaster_digest_t digest);
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()
Daes_key.h43 OperationFactory* GetOperationFactory(keymaster_purpose_t purpose) const override;
Drsa_key_factory.h47 OperationFactory* GetOperationFactory(keymaster_purpose_t purpose) const override;
Dhmac_key.h40 OperationFactory* GetOperationFactory(keymaster_purpose_t purpose) const override;
/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()
208 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/include/keymaster/legacy_support/
Dkeymaster1_legacy_support.h42 typedef std::pair<keymaster_algorithm_t, keymaster_purpose_t> AlgPurposePair;
119 OperationFactory* GetOperationFactory(keymaster_purpose_t /*purpose*/) const override { in GetOperationFactory() argument
/system/keymaster/tests/
Dandroid_keymaster_test_utils.h197 keymaster_error_t BeginOperation(keymaster_purpose_t purpose);
198 keymaster_error_t BeginOperation(keymaster_purpose_t purpose, const AuthorizationSet& input_set,
228 std::string ProcessMessage(keymaster_purpose_t purpose, const std::string& message);
229 std::string ProcessMessage(keymaster_purpose_t purpose, const std::string& message,
233 std::string ProcessMessage(keymaster_purpose_t purpose, const std::string& message,
237 std::string ProcessMessage(keymaster_purpose_t purpose, const std::string& message,
295 void CheckTripleDesTestVector(keymaster_purpose_t purpose, keymaster_block_mode_t mode,
/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