Home
last modified time | relevance | path

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

/hardware/interfaces/keymaster/4.0/vts/functional/
DKeymasterHidlTest.h34 ::std::ostream& operator<<(::std::ostream& os, const AuthorizationSet& set);
108 ErrorCode GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob,
110 ErrorCode GenerateKey(const AuthorizationSet& key_desc);
112 ErrorCode ImportKey(const AuthorizationSet& key_desc, KeyFormat format,
115 ErrorCode ImportKey(const AuthorizationSet& key_desc, KeyFormat format,
119 const AuthorizationSet& wrapping_key_desc, string masking_key,
120 const AuthorizationSet& unwrapping_params);
134 static void CheckCreationDateTime(const AuthorizationSet& sw_enforced,
143 ErrorCode Begin(KeyPurpose purpose, const HidlBuf& key_blob, const AuthorizationSet& in_params,
144 AuthorizationSet* out_params, OperationHandle* op_handle);
[all …]
DKeymasterHidlTest.cpp32 ::std::ostream& operator<<(::std::ostream& os, const AuthorizationSet& set) { in operator <<()
85 ErrorCode KeymasterHidlTest::GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob, in GenerateKey()
111 ErrorCode KeymasterHidlTest::GenerateKey(const AuthorizationSet& key_desc) { in GenerateKey()
115 ErrorCode KeymasterHidlTest::ImportKey(const AuthorizationSet& key_desc, KeyFormat format, in ImportKey()
137 ErrorCode KeymasterHidlTest::ImportKey(const AuthorizationSet& key_desc, KeyFormat format, in ImportKey()
143 const AuthorizationSet& wrapping_key_desc, in ImportWrappedKey()
145 const AuthorizationSet& unwrapping_params) { in ImportWrappedKey()
211 const AuthorizationSet& sw_enforced, in CheckCreationDateTime()
273 const AuthorizationSet& in_params, AuthorizationSet* out_params, in Begin()
294 ErrorCode KeymasterHidlTest::Begin(KeyPurpose purpose, const AuthorizationSet& in_params, in Begin()
[all …]
DVerificationTokenTest.cpp34 const AuthorizationSet& paramsToVerify, in verifyAuthorization()
80 1 /* operation handle */, AuthorizationSet() /* paramtersToVerify */, HardwareAuthToken()); in TEST_F()
101 2 /* operation handle */, AuthorizationSet() /* paramtersToVerify */, HardwareAuthToken()); in TEST_F()
Dkeymaster_hidl_hal_test.cpp56 bool operator==(const AuthorizationSet& a, const AuthorizationSet& b) { in operator ==()
62 AuthorizationSet a_sw(a.softwareEnforced); in operator ==()
63 AuthorizationSet b_sw(b.softwareEnforced); in operator ==()
64 AuthorizationSet a_tee(b.hardwareEnforced); in operator ==()
65 AuthorizationSet b_tee(b.hardwareEnforced); in operator ==()
297 AuthorizationSet filter_tags(const AuthorizationSet& set) { in filter_tags()
298 AuthorizationSet filtered; in filter_tags()
320 AuthorizationSet expected_sw_enforced, in verify_attestation_record()
321 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.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.cpp158 bool operator==(const AuthorizationSet& a, const AuthorizationSet& b) { in operator ==()
164 AuthorizationSet a_sw(a.softwareEnforced); in operator ==()
165 AuthorizationSet b_sw(b.softwareEnforced); in operator ==()
166 AuthorizationSet a_tee(b.teeEnforced); in operator ==()
167 AuthorizationSet b_tee(b.teeEnforced); in operator ==()
177 ::std::ostream& operator<<(::std::ostream& os, const AuthorizationSet& set) { in operator <<()
368 AuthorizationSet filter_tags(const AuthorizationSet& set) { in filter_tags()
369 AuthorizationSet filtered; in filter_tags()
470 AuthorizationSet UserAuths() { return AuthorizationSetBuilder().Authorization(TAG_USER_ID, 7); } in UserAuths()
472 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/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()