Home
last modified time | relevance | path

Searched refs:AuthorizationSet (Results 1 – 25 of 118) sorted by relevance

12345

/system/keymaster/include/keymaster/key_blob_utils/
Dsoftware_keyblobs.h30 class AuthorizationSet; variable
35 keymaster_error_t BuildHiddenAuthorizations(const AuthorizationSet& input_set,
36 AuthorizationSet* hidden,
39 keymaster_error_t FakeKeyAuthorizations(EVP_PKEY* pubkey, AuthorizationSet* hw_enforced,
40 AuthorizationSet* sw_enforced);
44 AuthorizationSet* hw_enforced,
45 AuthorizationSet* sw_enforced);
48 const AuthorizationSet& hidden,
50 AuthorizationSet* hw_enforced,
51 AuthorizationSet* sw_enforced);
[all …]
Dintegrity_assured_key_blob.h23 class AuthorizationSet; variable
29 const AuthorizationSet& hidden,
30 const AuthorizationSet& hw_enforced,
31 const AuthorizationSet& sw_enforced,
35 const AuthorizationSet& hidden,
37 AuthorizationSet* hw_enforced,
38 AuthorizationSet* sw_enforced);
42 AuthorizationSet* hw_enforced,
43 AuthorizationSet* sw_enforced);
Docb_utils.h27 class AuthorizationSet; variable
34 keymaster_error_t OcbEncryptKey(const AuthorizationSet& hw_enforced,
35 const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden,
40 keymaster_error_t OcbDecryptKey(const AuthorizationSet& hw_enforced,
41 const AuthorizationSet& sw_enforced, const AuthorizationSet& hidden,
Dauth_encrypted_key_blob.h55 AuthorizationSet hw_enforced;
56 AuthorizationSet sw_enforced;
64 const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced,
65 const AuthorizationSet& hidden, const KeymasterKeyBlob& master_key,
73 const AuthorizationSet& hw_enforced,
74 const AuthorizationSet& sw_enforced,
87 KeymasterKeyBlob DecryptKey(const DeserializedKey& key, const AuthorizationSet& hidden,
/system/keymaster/include/keymaster/km_openssl/
Drsa_operation.h36 RsaOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in RsaOperation()
43 keymaster_error_t Begin(const AuthorizationSet& input_params,
44 AuthorizationSet* output_params) override;
45 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
46 AuthorizationSet* output_params, Buffer* output,
76 RsaDigestingOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced,
92 RsaSignOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in RsaSignOperation()
97 keymaster_error_t Begin(const AuthorizationSet& input_params,
98 AuthorizationSet* output_params) override;
99 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
[all …]
Decdsa_operation.h32 EcdsaOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in EcdsaOperation()
55 EcdsaSignOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in EcdsaSignOperation()
58 keymaster_error_t Begin(const AuthorizationSet& input_params,
59 AuthorizationSet* output_params) override;
60 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
61 AuthorizationSet* output_params, Buffer* output,
63 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
64 const Buffer& signature, AuthorizationSet* output_params,
70 EcdsaVerifyOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in EcdsaVerifyOperation()
73 keymaster_error_t Begin(const AuthorizationSet& input_params,
[all …]
Dec_key_factory.h35 keymaster_error_t GenerateKey(const AuthorizationSet& key_description,
39 AuthorizationSet* hw_enforced, //
40 AuthorizationSet* sw_enforced,
42 keymaster_error_t ImportKey(const AuthorizationSet& key_description,
48 AuthorizationSet* hw_enforced, //
49 AuthorizationSet* sw_enforced,
52 keymaster_error_t CreateEmptyKey(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced,
55 keymaster_error_t UpdateImportKeyDescription(const AuthorizationSet& key_description,
58 AuthorizationSet* updated_description,
67 static keymaster_error_t GetCurveAndSize(const AuthorizationSet& key_description,
Drsa_key_factory.h32 keymaster_error_t GenerateKey(const AuthorizationSet& key_description,
36 AuthorizationSet* hw_enforced, //
37 AuthorizationSet* sw_enforced,
39 keymaster_error_t ImportKey(const AuthorizationSet& key_description,
45 AuthorizationSet* hw_enforced, //
46 AuthorizationSet* sw_enforced,
49 keymaster_error_t CreateEmptyKey(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced,
58 keymaster_error_t UpdateImportKeyDescription(const AuthorizationSet& key_description,
61 AuthorizationSet* updated_description,
Decdh_operation.h33 EcdhOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, EVP_PKEY* key) in EcdhOperation()
38 keymaster_error_t Begin(const AuthorizationSet& input_params,
39 AuthorizationSet* output_params) override;
40 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
41 AuthorizationSet* output_params, Buffer* output,
43 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
44 const Buffer& signature, AuthorizationSet* output_params,
54 OperationPtr CreateOperation(Key&& key, const AuthorizationSet& begin_params,
/system/keymaster/include/keymaster/legacy_support/
Dkeymaster_passthrough_key.h43 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, in GenerateKey()
46 KeymasterKeyBlob* key_blob, AuthorizationSet* hw_enforced, in GenerateKey()
47 AuthorizationSet* sw_enforced, in GenerateKey()
52 keymaster_error_t ImportKey(const AuthorizationSet& key_description, in ImportKey()
57 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced, in ImportKey()
58 AuthorizationSet* sw_enforced, in ImportKey()
65 const AuthorizationSet& additional_params,
66 AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced,
83 KeymasterPassthroughKey(KeymasterKeyBlob&& key_material, AuthorizationSet&& hw_enforced, in KeymasterPassthroughKey()
84 AuthorizationSet&& sw_enforced, const KeyFactory* key_factory, in KeymasterPassthroughKey()
[all …]
Dec_keymaster1_key.h44 keymaster_error_t GenerateKey(const AuthorizationSet& key_description,
48 AuthorizationSet* hw_enforced, //
49 AuthorizationSet* sw_enforced,
52 keymaster_error_t ImportKey(const AuthorizationSet& key_description,
58 AuthorizationSet* hw_enforced, //
59 AuthorizationSet* sw_enforced,
63 const AuthorizationSet& additional_params,
64 AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced,
78 EcdsaKeymaster1Key(EC_KEY* ecdsa_key, AuthorizationSet&& hw_enforced, in EcdsaKeymaster1Key()
79 AuthorizationSet&& sw_enforced, const KeyFactory* key_factory) in EcdsaKeymaster1Key()
Dkeymaster1_legacy_support.h47 bool RequiresSoftwareDigesting(const AuthorizationSet& key_description) const;
66 keymaster_error_t GenerateKey(const AuthorizationSet& key_description, in GenerateKey()
70 AuthorizationSet* hw_enforced, // in GenerateKey()
71 AuthorizationSet* sw_enforced, in GenerateKey()
84 keymaster_error_t ImportKey(const AuthorizationSet& key_description, in ImportKey()
90 AuthorizationSet* hw_enforced, // in ImportKey()
91 AuthorizationSet* sw_enforced, CertificateChain* cert_chain) const { in ImportKey()
104 const AuthorizationSet& additional_params, in LoadKey()
105 AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in LoadKey()
147 const AuthorizationSet& key_description, //
[all …]
Drsa_keymaster1_key.h44 keymaster_error_t GenerateKey(const AuthorizationSet& key_description,
48 AuthorizationSet* hw_enforced, //
49 AuthorizationSet* sw_enforced,
52 keymaster_error_t ImportKey(const AuthorizationSet& key_description,
58 AuthorizationSet* hw_enforced, //
59 AuthorizationSet* sw_enforced,
63 const AuthorizationSet& additional_params,
64 AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced,
80 RsaKeymaster1Key(RSA* rsa_key, AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in RsaKeymaster1Key()
Dkeymaster1_engine.h44 keymaster_error_t GenerateKey(const AuthorizationSet& key_description,
45 KeymasterKeyBlob* key_material, AuthorizationSet* hw_enforced,
46 AuthorizationSet* sw_enforced) const;
48 keymaster_error_t ImportKey(const AuthorizationSet& key_description,
51 KeymasterKeyBlob* output_key_blob, AuthorizationSet* hw_enforced,
52 AuthorizationSet* sw_enforced) const;
57 KeyData(const KeymasterKeyBlob& blob, const AuthorizationSet& params) in KeyData()
62 AuthorizationSet begin_params;
63 AuthorizationSet finish_params;
69 RSA* BuildRsaKey(const KeymasterKeyBlob& blob, const AuthorizationSet& additional_params,
[all …]
/system/keymaster/include/keymaster/
Doperation.h31 class AuthorizationSet; variable
55 virtual OperationPtr CreateOperation(Key&& key, const AuthorizationSet& begin_params,
80 bool GetAndValidatePadding(const AuthorizationSet& begin_params, const Key& key,
82 bool GetAndValidateDigest(const AuthorizationSet& begin_params, const Key& key,
84 bool GetAndValidateDigest(const AuthorizationSet& begin_params, const Key& key,
94 explicit Operation(keymaster_purpose_t purpose, AuthorizationSet&& hw_enforced, in Operation()
95 AuthorizationSet&& sw_enforced) in Operation()
109 AuthorizationSet hw_enforced() const { return hw_enforced_; } in hw_enforced()
110 AuthorizationSet sw_enforced() const { return sw_enforced_; } in sw_enforced()
132 virtual keymaster_error_t Begin(const AuthorizationSet& input_params,
[all …]
Dkey.h45 const AuthorizationSet& hw_enforced() const { return hw_enforced_; } in hw_enforced()
46 const AuthorizationSet& sw_enforced() const { return sw_enforced_; } in sw_enforced()
47 AuthorizationSet& hw_enforced() { return hw_enforced_; } in hw_enforced()
48 AuthorizationSet& sw_enforced() { return sw_enforced_; } in sw_enforced()
56 AuthorizationSet&& hw_enforced_move() { return move(hw_enforced_); } in hw_enforced_move()
57 AuthorizationSet&& sw_enforced_move() { return move(sw_enforced_); } in sw_enforced_move()
64 Key(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, in Key()
70 AuthorizationSet hw_enforced_;
71 AuthorizationSet sw_enforced_;
Dkey_factory.h39 virtual keymaster_error_t GenerateKey(const AuthorizationSet& key_description,
43 AuthorizationSet* hw_enforced,
44 AuthorizationSet* sw_enforced,
47 virtual keymaster_error_t ImportKey(const AuthorizationSet& key_description, //
53 AuthorizationSet* hw_enforced,
54 AuthorizationSet* sw_enforced,
58 const AuthorizationSet& additional_params,
59 AuthorizationSet&& hw_enforced,
60 AuthorizationSet&& sw_enforced,
/system/security/keystore/include/keystore/
Dkeystore_client_mock.h40 const keymaster::AuthorizationSet& input_parameters,
42 keymaster::AuthorizationSet* output_parameters, std::string* output_data));
46 const keymaster::AuthorizationSet& key_parameters,
47 keymaster::AuthorizationSet* hardware_enforced_characteristics,
48 keymaster::AuthorizationSet* software_enforced_characteristics));
51 keymaster::AuthorizationSet* hardware_enforced_characteristics,
52 keymaster::AuthorizationSet* software_enforced_characteristics));
55 const keymaster::AuthorizationSet& key_parameters,
57 keymaster::AuthorizationSet* hardware_enforced_characteristics,
58 keymaster::AuthorizationSet* software_enforced_characteristics));
[all …]
Dkeystore_client.h82 const keystore::AuthorizationSet& input_parameters,
85 keystore::AuthorizationSet* output_parameters,
99 generateKey(const std::string& key_name, const keystore::AuthorizationSet& key_parameters,
100 int32_t flags, keystore::AuthorizationSet* hardware_enforced_characteristics,
101 keystore::AuthorizationSet* software_enforced_characteristics) = 0;
108 keystore::AuthorizationSet* hardware_enforced_characteristics,
109 keystore::AuthorizationSet* software_enforced_characteristics) = 0;
117 importKey(const std::string& key_name, const keystore::AuthorizationSet& key_parameters,
119 keystore::AuthorizationSet* hardware_enforced_characteristics,
120 keystore::AuthorizationSet* software_enforced_characteristics) = 0;
[all …]
Dkeystore_client_impl.h44 const keystore::AuthorizationSet& input_parameters,
46 keystore::AuthorizationSet* output_parameters,
51 generateKey(const std::string& key_name, const keystore::AuthorizationSet& key_parameters,
52 int32_t flags, keystore::AuthorizationSet* hardware_enforced_characteristics,
53 keystore::AuthorizationSet* software_enforced_characteristics) override;
56 keystore::AuthorizationSet* hardware_enforced_characteristics,
57 keystore::AuthorizationSet* software_enforced_characteristics) override;
59 importKey(const std::string& key_name, const keystore::AuthorizationSet& key_parameters,
61 keystore::AuthorizationSet* hardware_enforced_characteristics,
62 keystore::AuthorizationSet* software_enforced_characteristics) override;
[all …]
/system/keymaster/tests/
Dauthorization_set_test.cpp39 AuthorizationSet set(params, array_length(params)); in TEST()
54 AuthorizationSet set(params, array_length(params)); in TEST()
55 AuthorizationSet set2(set); in TEST()
65 AuthorizationSet set1(params, 0); in TEST()
67 EXPECT_EQ(AuthorizationSet::OK, set1.is_valid()); in TEST()
69 AuthorizationSet set2(reinterpret_cast<keymaster_key_param_t*>(NULL), array_length(params)); in TEST()
71 EXPECT_EQ(AuthorizationSet::OK, set2.is_valid()); in TEST()
75 AuthorizationSet set(AuthorizationSetBuilder() in TEST()
106 AuthorizationSet set(AuthorizationSetBuilder() in TEST()
135 AuthorizationSet set(AuthorizationSetBuilder() in TEST()
[all …]
Dandroid_keymaster_test_utils.h49 bool operator==(const AuthorizationSet& a, const AuthorizationSet& b);
50 bool operator!=(const AuthorizationSet& a, const AuthorizationSet& b);
52 std::ostream& operator<<(std::ostream& os, const AuthorizationSet& set);
57 bool contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM, Tag, KeymasterEnum> tag, in contains()
64 bool contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM_REP, Tag, KeymasterEnum> tag, in contains()
73 bool contains(const AuthorizationSet& set, TypedTag<KM_UINT, Tag> tag, uint32_t val) { in contains()
79 bool contains(const AuthorizationSet& set, TypedTag<KM_UINT_REP, Tag> tag, uint32_t val) { in contains()
87 bool contains(const AuthorizationSet& set, TypedTag<KM_ULONG, Tag> tag, uint64_t val) { in contains()
93 bool contains(const AuthorizationSet& set, TypedTag<KM_BYTES, Tag> tag, const std::string& val) { in contains()
100 bool contains(const AuthorizationSet& set, TypedTag<KM_BIGNUM, Tag> tag, const std::string& val) { in contains()
[all …]
/system/keymaster/km_openssl/
Dblock_cipher_operation.h54 OperationPtr CreateOperation(Key&& key, const AuthorizationSet& begin_params,
76 keymaster_error_t Begin(const AuthorizationSet& input_params,
77 AuthorizationSet* output_params) override;
78 keymaster_error_t Update(const AuthorizationSet& additional_params, const Buffer& input,
79 AuthorizationSet* output_params, Buffer* output,
81 keymaster_error_t Finish(const AuthorizationSet& additional_params, const Buffer& input,
82 const Buffer& signature, AuthorizationSet* output_params,
91 keymaster_error_t GetIv(const AuthorizationSet& input_params);
92 bool HandleAad(const AuthorizationSet& input_params, const Buffer& input,
99 bool UpdateForFinish(const AuthorizationSet& additional_params, const Buffer& input,
[all …]
/system/keymaster/legacy_support/
Drsa_keymaster1_key.cpp41 static void UpdateToWorkAroundUnsupportedDigests(const AuthorizationSet& key_description, in UpdateToWorkAroundUnsupportedDigests()
42 AuthorizationSet* new_description) { in UpdateToWorkAroundUnsupportedDigests()
83 keymaster_error_t RsaKeymaster1KeyFactory::GenerateKey(const AuthorizationSet& key_description, in GenerateKey()
87 AuthorizationSet* hw_enforced, in GenerateKey()
88 AuthorizationSet* sw_enforced, in GenerateKey()
90 AuthorizationSet key_params_copy; in GenerateKey()
96 RsaKeymaster1KeyFactory::ImportKey(const AuthorizationSet& key_description, in ImportKey()
102 AuthorizationSet* hw_enforced, // in ImportKey()
103 AuthorizationSet* sw_enforced, in ImportKey()
105 AuthorizationSet key_params_copy; in ImportKey()
[all …]
Dec_keymaster1_key.cpp42 static void UpdateToWorkAroundUnsupportedDigests(const AuthorizationSet& key_description, in UpdateToWorkAroundUnsupportedDigests()
43 AuthorizationSet* new_description) { in UpdateToWorkAroundUnsupportedDigests()
65 keymaster_error_t EcdsaKeymaster1KeyFactory::GenerateKey(const AuthorizationSet& key_description, in GenerateKey()
69 AuthorizationSet* hw_enforced, in GenerateKey()
70 AuthorizationSet* sw_enforced, in GenerateKey()
72 AuthorizationSet key_params_copy; in GenerateKey()
87 EcdsaKeymaster1KeyFactory::ImportKey(const AuthorizationSet& key_description, // in ImportKey()
93 AuthorizationSet* hw_enforced, // in ImportKey()
94 AuthorizationSet* sw_enforced, in ImportKey()
96 AuthorizationSet key_params_copy; in ImportKey()
[all …]

12345