Home
last modified time | relevance | path

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

/hardware/interfaces/keymaster/4.0/vts/functional/
DKeymasterHidlTest.h32 ::std::ostream& operator<<(::std::ostream& os, const AuthorizationSet& set);
99 ErrorCode GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob,
101 ErrorCode GenerateKey(const AuthorizationSet& key_desc);
103 ErrorCode ImportKey(const AuthorizationSet& key_desc, KeyFormat format,
106 ErrorCode ImportKey(const AuthorizationSet& key_desc, KeyFormat format,
110 const AuthorizationSet& wrapping_key_desc, string masking_key,
111 const AuthorizationSet& unwrapping_params);
133 ErrorCode Begin(KeyPurpose purpose, const HidlBuf& key_blob, const AuthorizationSet& in_params,
134 AuthorizationSet* out_params, OperationHandle* op_handle);
135 ErrorCode Begin(KeyPurpose purpose, const AuthorizationSet& in_params,
[all …]
DKeymasterHidlTest.cpp33 ::std::ostream& operator<<(::std::ostream& os, const AuthorizationSet& set) { in operator <<()
67 ErrorCode KeymasterHidlTest::GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob, in GenerateKey()
93 ErrorCode KeymasterHidlTest::GenerateKey(const AuthorizationSet& key_desc) { in GenerateKey()
97 ErrorCode KeymasterHidlTest::ImportKey(const AuthorizationSet& key_desc, KeyFormat format, in ImportKey()
119 ErrorCode KeymasterHidlTest::ImportKey(const AuthorizationSet& key_desc, KeyFormat format, in ImportKey()
125 const AuthorizationSet& wrapping_key_desc, in ImportWrappedKey()
127 const AuthorizationSet& unwrapping_params) { in ImportWrappedKey()
248 const AuthorizationSet& in_params, AuthorizationSet* out_params, in Begin()
269 ErrorCode KeymasterHidlTest::Begin(KeyPurpose purpose, const AuthorizationSet& in_params, in Begin()
270 AuthorizationSet* out_params) { in Begin()
[all …]
DVerificationTokenTest.cpp34 const AuthorizationSet& paramsToVerify, in verifyAuthorization()
80 1 /* operation handle */, AuthorizationSet() /* paramtersToVerify */, HardwareAuthToken()); in TEST_P()
101 2 /* operation handle */, AuthorizationSet() /* paramtersToVerify */, HardwareAuthToken()); in TEST_P()
140 AuthorizationSet() /* paramtersToVerify */, HardwareAuthToken()); in TEST_P()
162 AuthorizationSet() /* paramtersToVerify */, HardwareAuthToken()); in TEST_P()
Dkeymaster_hidl_hal_test.cpp57 bool operator==(const AuthorizationSet& a, const AuthorizationSet& b) { in operator ==()
63 AuthorizationSet a_sw(a.softwareEnforced); in operator ==()
64 AuthorizationSet b_sw(b.softwareEnforced); in operator ==()
65 AuthorizationSet a_tee(b.hardwareEnforced); in operator ==()
66 AuthorizationSet b_tee(b.hardwareEnforced); in operator ==()
298 AuthorizationSet filter_tags(const AuthorizationSet& set) { in filter_tags()
299 AuthorizationSet filtered; in filter_tags()
321 AuthorizationSet expected_sw_enforced, in verify_attestation_record()
322 AuthorizationSet expected_hw_enforced, SecurityLevel security_level, in verify_attestation_record()
332 AuthorizationSet att_sw_enforced; in verify_attestation_record()
[all …]
/hardware/interfaces/keymaster/4.1/vts/functional/
DKeymaster4_1HidlTest.cpp29 const string& message, const AuthorizationSet& in_params) in ProcessMessage()
30 -> std::tuple<ErrorCode, string, AuthorizationSet /* out_params */> { in ProcessMessage()
31 AuthorizationSet begin_out_params; in ProcessMessage()
33 AuthorizationSet out_params(std::move(begin_out_params)); in ProcessMessage()
40 AuthorizationSet update_params; in ProcessMessage()
41 AuthorizationSet update_out_params; in ProcessMessage()
49 AuthorizationSet finish_params; in ProcessMessage()
50 AuthorizationSet finish_out_params; in ProcessMessage()
DDeviceUniqueAttestationTest.cpp28 bool operator==(const AuthorizationSet& a, const AuthorizationSet& b) { in operator ==()
63 AuthorizationSet aWhackB;
64 AuthorizationSet bWhackA;
87 AuthorizationSetDifferences difference(string aName, const AuthorizationSet& a, string bName, in difference()
88 const AuthorizationSet& b) { in difference()
130 AuthorizationSet expected_sw_enforced, in check_attestation_record()
131 AuthorizationSet expected_hw_enforced, in check_attestation_record()
DKeymaster4_1HidlTest.h43 std::tuple<ErrorCode, KeyData> GenerateKeyData(const AuthorizationSet& keyDescription) { in GenerateKeyData()
104 std::tuple<ErrorCode, std::string /* processedMessage */, AuthorizationSet /* out_params */>
106 const AuthorizationSet& in_params);
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dauthorization_set.h36 class AuthorizationSet {
43 AuthorizationSet(){}; in AuthorizationSet() function
46 AuthorizationSet(const AuthorizationSet& other) : data_(other.data_) {} in AuthorizationSet() function
49 AuthorizationSet(AuthorizationSet&& other) noexcept : data_(std::move(other.data_)) {} in AuthorizationSet() function
52 AuthorizationSet(const hidl_vec<KeyParameter>& other) { *this = other; } in AuthorizationSet() function
55 AuthorizationSet& operator=(const AuthorizationSet& other) {
61 AuthorizationSet& operator=(AuthorizationSet&& other) noexcept {
66 AuthorizationSet& operator=(const hidl_vec<KeyParameter>& other) {
83 ~AuthorizationSet() = default;
115 void Union(const AuthorizationSet& set);
[all …]
Dattestation_record.h27 class AuthorizationSet; variable
58 AuthorizationSet* software_enforced,
59 AuthorizationSet* tee_enforced, //
/hardware/interfaces/keymaster/3.0/vts/functional/
Dauthorization_set.h37 class AuthorizationSet {
44 AuthorizationSet(){}; in AuthorizationSet() function
47 AuthorizationSet(const AuthorizationSet& other) : data_(other.data_) {} in AuthorizationSet() function
50 AuthorizationSet(AuthorizationSet&& other) : data_(std::move(other.data_)) {} in AuthorizationSet() function
53 AuthorizationSet(const hidl_vec<KeyParameter>& other) { *this = other; } in AuthorizationSet() function
56 AuthorizationSet& operator=(const AuthorizationSet& other) {
62 AuthorizationSet& operator=(AuthorizationSet&& other) {
67 AuthorizationSet& operator=(const hidl_vec<KeyParameter>& other) {
84 ~AuthorizationSet() = default;
116 void Union(const AuthorizationSet& set);
[all …]
Dauthorization_set.cpp93 void AuthorizationSet::Sort() { in Sort()
97 void AuthorizationSet::Deduplicate() { in Deduplicate()
117 void AuthorizationSet::Union(const AuthorizationSet& other) { in Union()
122 void AuthorizationSet::Subtract(const AuthorizationSet& other) { in Subtract()
139 int AuthorizationSet::find(Tag tag, int begin) const { in find()
149 bool AuthorizationSet::erase(int index) { in erase()
158 KeyParameter& AuthorizationSet::operator[](int at) { in operator []()
162 const KeyParameter& AuthorizationSet::operator[](int at) const { in operator []()
166 void AuthorizationSet::Clear() { in Clear()
170 size_t AuthorizationSet::GetTagCount(Tag tag) const { in GetTagCount()
[all …]
Dkeymaster_hidl_hal_test.cpp156 bool operator==(const AuthorizationSet& a, const AuthorizationSet& b) { in operator ==()
162 AuthorizationSet a_sw(a.softwareEnforced); in operator ==()
163 AuthorizationSet b_sw(b.softwareEnforced); in operator ==()
164 AuthorizationSet a_tee(b.teeEnforced); in operator ==()
165 AuthorizationSet b_tee(b.teeEnforced); in operator ==()
175 ::std::ostream& operator<<(::std::ostream& os, const AuthorizationSet& set) { in operator <<()
366 AuthorizationSet filter_tags(const AuthorizationSet& set) { in filter_tags()
367 AuthorizationSet filtered; in filter_tags()
452 AuthorizationSet UserAuths() { return AuthorizationSetBuilder().Authorization(TAG_USER_ID, 7); } in UserAuths()
454 ErrorCode GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob, in GenerateKey()
[all …]
Dattestation_record.cpp144 AuthorizationSet* auth_list) { in copyAuthTag()
154 AuthorizationSet* auth_list) { in copyAuthTag()
162 AuthorizationSet* auth_list) { in copyAuthTag()
193 AuthorizationSet* auth_list) { in copyAuthTag()
201 AuthorizationSet* auth_list) { in copyAuthTag()
209 AuthorizationSet* auth_list) { in copyAuthTag()
216 AuthorizationSet* auth_list) { in copyAuthTag()
224 static ErrorCode extract_auth_list(const KM_AUTH_LIST* record, AuthorizationSet* auth_list) { in extract_auth_list()
263 AuthorizationSet* software_enforced, in MAKE_OPENSSL_PTR_TYPE()
264 AuthorizationSet* tee_enforced, // in MAKE_OPENSSL_PTR_TYPE()
Dattestation_record.h49 AuthorizationSet* software_enforced,
50 AuthorizationSet* tee_enforced, //
/hardware/interfaces/keymaster/4.0/vts/performance/
DBenchmark.cpp60 using android::hardware::keymaster::V4_0::AuthorizationSet;
124 bool GenerateKey(const AuthorizationSet& authSet) { in GenerateKey()
212 AuthorizationSet getOperationParams(string transform, bool sign = false) { in getOperationParams()
224 optional<OperationHandle> EncryptBegin(AuthorizationSet& in_params, in EncryptBegin()
225 AuthorizationSet* out_params = new AuthorizationSet) { in EncryptBegin()
229 optional<OperationHandle> DecryptBegin(AuthorizationSet& in_params, in DecryptBegin()
230 AuthorizationSet* out_params = new AuthorizationSet) { in DecryptBegin()
234 optional<OperationHandle> SignBegin(AuthorizationSet& in_params, in SignBegin()
235 AuthorizationSet* out_params = new AuthorizationSet) { in SignBegin()
239 optional<OperationHandle> VerifyBegin(AuthorizationSet& in_params, in VerifyBegin()
[all …]
/hardware/interfaces/keymaster/4.0/support/
Dauthorization_set.cpp86 void AuthorizationSet::Sort() { in Sort()
90 void AuthorizationSet::Deduplicate() { in Deduplicate()
110 void AuthorizationSet::Union(const AuthorizationSet& other) { in Union()
115 void AuthorizationSet::Subtract(const AuthorizationSet& other) { in Subtract()
132 void AuthorizationSet::Filter(std::function<bool(const KeyParameter&)> doKeep) { in Filter()
142 KeyParameter& AuthorizationSet::operator[](int at) { in operator []()
146 const KeyParameter& AuthorizationSet::operator[](int at) const { in operator []()
150 void AuthorizationSet::Clear() { in Clear()
154 size_t AuthorizationSet::GetTagCount(Tag tag) const { in GetTagCount()
160 int AuthorizationSet::find(Tag tag, int begin) const { in find()
[all …]
Dattestation_record.cpp159 AuthorizationSet* auth_list) { in copyAuthTag()
169 AuthorizationSet* auth_list) { in copyAuthTag()
177 AuthorizationSet* auth_list) { in copyAuthTag()
208 AuthorizationSet* auth_list) { in copyAuthTag()
216 AuthorizationSet* auth_list) { in copyAuthTag()
224 AuthorizationSet* auth_list) { in copyAuthTag()
231 AuthorizationSet* auth_list) { in copyAuthTag()
239 static ErrorCode extract_auth_list(const KM_AUTH_LIST* record, AuthorizationSet* auth_list) { in extract_auth_list()
283 AuthorizationSet* software_enforced, in MAKE_OPENSSL_PTR_TYPE()
284 AuthorizationSet* tee_enforced, // in MAKE_OPENSSL_PTR_TYPE()
/hardware/interfaces/identity/aidl/vts/
DVtsAttestationParserSupport.h40 using ::keymaster::AuthorizationSet;
111 AuthorizationSet att_sw_enforced_;
112 AuthorizationSet att_hw_enforced_;
DVtsAttestationParserSupport.cpp35 using ::keymaster::AuthorizationSet;
/hardware/interfaces/keymaster/4.1/support/include/keymasterV4_1/
Dattestation_record.h47 AuthorizationSet software_enforced;
48 AuthorizationSet hardware_enforced;
Dauthorization_set.h25 using V4_0::AuthorizationSet;
/hardware/interfaces/keymaster/4.1/support/
Dattestation_record.cpp176 AuthorizationSet* auth_list) { in copyAuthTag()
186 AuthorizationSet* auth_list) { in copyAuthTag()
194 AuthorizationSet* auth_list) { in copyAuthTag()
225 AuthorizationSet* auth_list) { in copyAuthTag()
233 AuthorizationSet* auth_list) { in copyAuthTag()
241 AuthorizationSet* auth_list) { in copyAuthTag()
248 AuthorizationSet* auth_list) { in copyAuthTag()
256 static ErrorCode extract_auth_list(const KM_AUTH_LIST* record, AuthorizationSet* auth_list) { in extract_auth_list()
/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp836 ::keymaster::AuthorizationSet auth_set( in createAttestation()
854 ::keymaster::AuthorizationSet swEnforced(::keymaster::AuthorizationSetBuilder().Authorization( in createAttestation()
857 ::keymaster::AuthorizationSet hwEnforced( in createAttestation()