/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | KeymasterHidlTest.h | 32 ::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 …]
|
D | VerificationTokenTest.cpp | 34 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()
|
D | keymaster_hidl_hal_test.cpp | 62 bool operator==(const AuthorizationSet& a, const AuthorizationSet& b) { in operator ==() 68 AuthorizationSet a_sw(a.softwareEnforced); in operator ==() 69 AuthorizationSet b_sw(b.softwareEnforced); in operator ==() 70 AuthorizationSet a_tee(b.hardwareEnforced); in operator ==() 71 AuthorizationSet b_tee(b.hardwareEnforced); in operator ==() 363 AuthorizationSet filter_tags(const AuthorizationSet& set) { in filter_tags() 364 AuthorizationSet filtered; in filter_tags() 392 AuthorizationSet expected_sw_enforced, in verify_attestation_record() 393 AuthorizationSet expected_hw_enforced, SecurityLevel security_level, in verify_attestation_record() 403 AuthorizationSet att_sw_enforced; in verify_attestation_record() [all …]
|
/hardware/interfaces/security/keymint/aidl/vts/functional/ |
D | KeyMintAidlTestBase.h | 39 ::std::ostream& operator<<(::std::ostream& os, const AuthorizationSet& set); 41 inline bool operator==(const keymint::AuthorizationSet& a, const keymint::AuthorizationSet& b) { 84 ErrorCode GenerateKey(const AuthorizationSet& key_desc, vector<uint8_t>* key_blob, in GenerateKey() 89 ErrorCode GenerateKey(const AuthorizationSet& key_desc, 93 ErrorCode GenerateKey(const AuthorizationSet& key_desc, 96 ErrorCode ImportKey(const AuthorizationSet& key_desc, KeyFormat format, 99 ErrorCode ImportKey(const AuthorizationSet& key_desc, KeyFormat format, 103 const AuthorizationSet& wrapping_key_desc, string masking_key, 104 const AuthorizationSet& unwrapping_params, int64_t password_sid, 107 const AuthorizationSet& wrapping_key_desc, string masking_key, in ImportWrappedKey() [all …]
|
D | KeyMintAidlTestBase.cpp | 51 ::std::ostream& operator<<(::std::ostream& os, const AuthorizationSet& set) { in operator <<() 137 AuthorizationSet filtered_tags(const AuthorizationSet& set) { in filtered_tags() 138 AuthorizationSet filtered; in filtered_tags() 172 AuthorizationSet allAuths; in boot_patch_level() 174 allAuths.push_back(AuthorizationSet(entry.authorizations)); in boot_patch_level() 226 ErrorCode KeyMintAidlTestBase::GenerateKey(const AuthorizationSet& key_desc, in GenerateKey() 266 ErrorCode KeyMintAidlTestBase::GenerateKey(const AuthorizationSet& key_desc, in GenerateKey() 271 ErrorCode KeyMintAidlTestBase::ImportKey(const AuthorizationSet& key_desc, KeyFormat format, in ImportKey() 309 ErrorCode KeyMintAidlTestBase::ImportKey(const AuthorizationSet& key_desc, KeyFormat format, in ImportKey() 315 const AuthorizationSet& wrapping_key_desc, in ImportWrappedKey() [all …]
|
D | DeviceUniqueAttestationTest.cpp | 32 const AuthorizationSet& hw_enforced) { in CheckUniqueAttestationResults() 41 AuthorizationSet crypto_params = SecLevelAuthorizations(key_characteristics); in CheckUniqueAttestationResults() 54 AuthorizationSet sw_enforced = SwEnforcedAuthorizations(key_characteristics); in CheckUniqueAttestationResults() 157 AuthorizationSet auths; in TEST_P() 159 auths.push_back(AuthorizationSet(entry.authorizations)); in TEST_P() 210 AuthorizationSet auths; in TEST_P() 212 auths.push_back(AuthorizationSet(entry.authorizations)); in TEST_P() 278 AuthorizationSet auths; in TEST_P() 280 auths.push_back(AuthorizationSet(entry.authorizations)); in TEST_P()
|
D | AttestKeyTest.cpp | 82 AuthorizationSet hw_enforced = HwEnforcedAuthorizations(attested_key_characteristics); in TEST_P() 83 AuthorizationSet sw_enforced = SwEnforcedAuthorizations(attested_key_characteristics); in TEST_P() 218 AuthorizationSet hw_enforced = HwEnforcedAuthorizations(attest_key_characteristics); in TEST_P() 219 AuthorizationSet sw_enforced = SwEnforcedAuthorizations(attest_key_characteristics); in TEST_P() 253 AuthorizationSet hw_enforced2 = HwEnforcedAuthorizations(attested_key_characteristics); in TEST_P() 254 AuthorizationSet sw_enforced2 = SwEnforcedAuthorizations(attested_key_characteristics); in TEST_P() 313 AuthorizationSet hw_enforced = HwEnforcedAuthorizations(attested_key_characteristics); in TEST_P() 314 AuthorizationSet sw_enforced = SwEnforcedAuthorizations(attested_key_characteristics); in TEST_P() 385 AuthorizationSet hw_enforced = HwEnforcedAuthorizations(attested_key_characteristics); in TEST_P() 386 AuthorizationSet sw_enforced = SwEnforcedAuthorizations(attested_key_characteristics); in TEST_P() [all …]
|
/hardware/interfaces/keymaster/4.1/vts/functional/ |
D | Keymaster4_1HidlTest.cpp | 29 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()
|
D | DeviceUniqueAttestationTest.cpp | 38 bool operator==(const AuthorizationSet& a, const AuthorizationSet& b) { in operator ==() 77 AuthorizationSet aWhackB; 78 AuthorizationSet bWhackA; 101 AuthorizationSetDifferences difference(string aName, const AuthorizationSet& a, string bName, in difference() 102 const AuthorizationSet& b) { in difference() 154 AuthorizationSet filter_tags(const AuthorizationSet& set) { in filter_tags() 155 AuthorizationSet filtered; in filter_tags() 161 AuthorizationSet expected_sw_enforced, in check_attestation_record() 162 AuthorizationSet expected_hw_enforced, in check_attestation_record() 180 AuthorizationSet attestation_sw_enforced = filter_tags(attestation.software_enforced); in check_attestation_record() [all …]
|
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/ |
D | authorization_set.h | 37 class AuthorizationSet { 44 AuthorizationSet(){}; in AuthorizationSet() function 47 AuthorizationSet(const AuthorizationSet& other) : data_(other.data_) {} in AuthorizationSet() function 50 AuthorizationSet(AuthorizationSet&& other) noexcept : 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) noexcept { 67 AuthorizationSet& operator=(const hidl_vec<KeyParameter>& other) { 84 ~AuthorizationSet() = default; 116 void Union(const AuthorizationSet& set); [all …]
|
D | attestation_record.h | 27 class AuthorizationSet; variable 58 AuthorizationSet* software_enforced, 59 AuthorizationSet* tee_enforced, //
|
/hardware/interfaces/security/keymint/support/include/keymint_support/ |
D | authorization_set.h | 38 class AuthorizationSet { 45 AuthorizationSet(){}; in AuthorizationSet() function 48 AuthorizationSet(const AuthorizationSet& other) : data_(other.data_) {} in AuthorizationSet() function 51 AuthorizationSet(AuthorizationSet&& other) noexcept : data_(std::move(other.data_)) {} in AuthorizationSet() function 54 AuthorizationSet(const vector<KeyParameter>& other) { *this = other; } in AuthorizationSet() function 57 AuthorizationSet& operator=(const AuthorizationSet& other) { 63 AuthorizationSet& operator=(AuthorizationSet&& other) noexcept { 68 AuthorizationSet& operator=(const vector<KeyParameter>& other) { 85 ~AuthorizationSet() = default; 117 void Union(const AuthorizationSet& set); [all …]
|
D | attestation_record.h | 28 class AuthorizationSet; variable 68 AuthorizationSet software_enforced; 69 AuthorizationSet hardware_enforced; 78 AuthorizationSet* software_enforced, 79 AuthorizationSet* tee_enforced, //
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | authorization_set.h | 37 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 …]
|
D | authorization_set.cpp | 93 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 …]
|
D | keymaster_hidl_hal_test.cpp | 156 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 …]
|
D | attestation_record.h | 49 AuthorizationSet* software_enforced, 50 AuthorizationSet* tee_enforced, //
|
D | attestation_record.cpp | 144 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()
|
/hardware/interfaces/security/keymint/support/ |
D | authorization_set.cpp | 27 void AuthorizationSet::Sort() { in Sort() 31 void AuthorizationSet::Deduplicate() { in Deduplicate() 51 void AuthorizationSet::Union(const AuthorizationSet& other) { in Union() 56 void AuthorizationSet::Subtract(const AuthorizationSet& other) { in Subtract() 73 KeyParameter& AuthorizationSet::operator[](int at) { in operator []() 77 const KeyParameter& AuthorizationSet::operator[](int at) const { in operator []() 81 void AuthorizationSet::Clear() { in Clear() 85 size_t AuthorizationSet::GetTagCount(Tag tag) const { in GetTagCount() 91 int AuthorizationSet::find(Tag tag, int begin) const { in find() 100 bool AuthorizationSet::erase(int index) { in erase() [all …]
|
D | attestation_record.cpp | 201 AuthorizationSet* auth_list) { in copyAuthTag() 211 AuthorizationSet* auth_list) { in copyAuthTag() 219 AuthorizationSet* auth_list) { in copyAuthTag() 250 AuthorizationSet* auth_list) { in copyAuthTag() 258 AuthorizationSet* auth_list) { in copyAuthTag() 266 AuthorizationSet* auth_list) { in copyAuthTag() 273 AuthorizationSet* auth_list) { in copyAuthTag() 281 static ErrorCode extract_auth_list(const KM_AUTH_LIST* record, AuthorizationSet* auth_list) { in extract_auth_list() 339 AuthorizationSet* software_enforced, in MAKE_OPENSSL_PTR_TYPE() 340 AuthorizationSet* tee_enforced, // in MAKE_OPENSSL_PTR_TYPE()
|
/hardware/interfaces/keymaster/4.0/vts/performance/ |
D | Benchmark.cpp | 60 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/ |
D | authorization_set.cpp | 86 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 …]
|
D | attestation_record.cpp | 188 AuthorizationSet* auth_list) { in copyAuthTag() 198 AuthorizationSet* auth_list) { in copyAuthTag() 206 AuthorizationSet* auth_list) { in copyAuthTag() 237 AuthorizationSet* auth_list) { in copyAuthTag() 245 AuthorizationSet* auth_list) { in copyAuthTag() 253 AuthorizationSet* auth_list) { in copyAuthTag() 260 AuthorizationSet* auth_list) { in copyAuthTag() 268 static ErrorCode extract_auth_list(const KM_AUTH_LIST* record, AuthorizationSet* auth_list) { in extract_auth_list() 320 AuthorizationSet* software_enforced, in MAKE_OPENSSL_PTR_TYPE() 321 AuthorizationSet* tee_enforced, // in MAKE_OPENSSL_PTR_TYPE()
|
/hardware/interfaces/keymaster/4.1/support/include/keymasterV4_1/ |
D | attestation_record.h | 47 AuthorizationSet software_enforced; 48 AuthorizationSet hardware_enforced;
|
D | authorization_set.h | 25 using V4_0::AuthorizationSet;
|