/system/keymaster/ |
D | authorization_set_test.cpp | 30 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST() 31 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_USER_ID, 7), in TEST() 32 Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_PASSWORD), in TEST() 33 Authorization(TAG_APPLICATION_ID, "my_app", 6), Authorization(TAG_KEY_SIZE, 256), in TEST() 34 Authorization(TAG_AUTH_TIMEOUT, 300), in TEST() 42 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST() 43 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_USER_ID, 7), in TEST() 44 Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_PASSWORD), in TEST() 45 Authorization(TAG_APPLICATION_ID, "my_app", 6), Authorization(TAG_KEY_SIZE, 256), in TEST() 46 Authorization(TAG_AUTH_TIMEOUT, 300), in TEST() [all …]
|
D | keymaster_enforcement_test.cpp | 81 sign_param = Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN); in KeymasterBaseTest() 108 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F() 109 Authorization(TAG_NO_AUTH_REQUIRED), Authorization(TAG_ACTIVE_DATETIME, future_time), in TEST_F() 123 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), Authorization(TAG_ACTIVE_DATETIME, past_time), in TEST_F() 134 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F() 135 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, past_time), in TEST_F() 148 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F() 149 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, past_time), in TEST_F() 161 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F() 162 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, future_time), in TEST_F() [all …]
|
D | android_keymaster_test.cpp | 369 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_P() 370 .Authorization(TAG_RSA_PUBLIC_EXPONENT, 3) in TEST_P() 407 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_EC) in TEST_P() 444 .Authorization(TAG_MIN_MAC_LENGTH, 256))); in TEST_P() 455 .Authorization(TAG_MIN_MAC_LENGTH, 128))); in TEST_P() 465 .Authorization(TAG_MIN_MAC_LENGTH, 128))); in TEST_P() 475 .Authorization(TAG_MIN_MAC_LENGTH, 48))); in TEST_P() 485 .Authorization(TAG_MIN_MAC_LENGTH, 130))); in TEST_P() 495 .Authorization(TAG_MIN_MAC_LENGTH, 384))); in TEST_P() 795 GenerateKey(AuthorizationSetBuilder().AesEncryptionKey(128).Authorization( in TEST_P() [all …]
|
D | android_keymaster_messages_test.cpp | 120 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), 121 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), 122 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), 123 Authorization(TAG_USER_ID, 7), 124 Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_PASSWORD), 125 Authorization(TAG_APPLICATION_ID, "app_id", 6), 126 Authorization(TAG_AUTH_TIMEOUT, 300), 216 msg.output_params.push_back(Authorization(TAG_NONCE, "foo", 3)); in TEST()
|
D | android_keymaster_test_utils.cpp | 585 .Authorization(TAG_MIN_MAC_LENGTH, expected_mac.size() * 8) in CheckHmacTestVector() 598 .Authorization(TAG_BLOCK_MODE, KM_MODE_CTR) in CheckAesCtrTestVector() 599 .Authorization(TAG_CALLER_NONCE) in CheckAesCtrTestVector()
|
D | android_keymaster_test_utils.h | 308 Authorization(TAG_APPLICATION_ID, client_id_.data, client_id_.data_length)};
|
/system/keymaster/include/keymaster/ |
D | authorization_set.h | 319 return push_back(Authorization(tag, val)); in push_back() 326 return push_back(Authorization(tag)); in push_back() 358 return push_back(Authorization(tag, val)); in push_back() 363 return push_back(Authorization(tag, bytes, bytes_len)); in push_back() 414 AuthorizationSetBuilder& Authorization(TagType tag, ValueType value) { in Authorization() function 420 AuthorizationSetBuilder& Authorization(TypedTag<KM_BOOL, Tag> tag) { in Authorization() function 426 AuthorizationSetBuilder& Authorization(TypedTag<KM_INVALID, Tag> tag) { in Authorization() function 434 AuthorizationSetBuilder& Authorization(TypedTag<KM_BYTES, Tag> tag, const uint8_t* data, in Authorization() function 441 AuthorizationSetBuilder& Authorization(TypedTag<KM_BYTES, Tag> tag, const char* data, in Authorization() function 443 return Authorization(tag, reinterpret_cast<const uint8_t*>(data), data_length); in Authorization() [all …]
|
D | keymaster_tags.h | 213 inline keymaster_key_param_t Authorization(TypedTag<KM_BOOL, Tag> tag) { 218 inline keymaster_key_param_t Authorization(TypedTag<KM_UINT, Tag> tag, uint32_t value) { 223 inline keymaster_key_param_t Authorization(TypedTag<KM_UINT_REP, Tag> tag, uint32_t value) { 228 inline keymaster_key_param_t Authorization(TypedTag<KM_ULONG, Tag> tag, uint64_t value) { 233 inline keymaster_key_param_t Authorization(TypedTag<KM_ULONG_REP, Tag> tag, uint64_t value) { 238 inline keymaster_key_param_t Authorization(TypedTag<KM_DATE, Tag> tag, uint64_t value) { 243 inline keymaster_key_param_t Authorization(TypedTag<KM_BYTES, Tag> tag, const void* bytes, 249 inline keymaster_key_param_t Authorization(TypedTag<KM_BYTES, Tag> tag, 255 inline keymaster_key_param_t Authorization(TypedTag<KM_BIGNUM, Tag> tag, const void* bytes, 261 inline keymaster_key_param_t Authorization(TypedTag<KM_BIGNUM, Tag> tag, [all …]
|
/system/security/keystore/tests/ |
D | auth_token_table_test.cpp | 87 builder.Authorization(TAG_USER_ID, 10) in make_set() 88 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_PASSWORD) in make_set() 89 .Authorization(TAG_USER_SECURE_ID, rsid); in make_set() 92 builder.Authorization(TAG_AUTH_TIMEOUT, timeout); in make_set() 232 table.FindAuthorization(AuthorizationSetBuilder().Authorization(TAG_NO_AUTH_REQUIRED), in TEST()
|