• Home
  • Raw
  • Download

Lines Matching refs:Authorization

81         sign_param = Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN);  in KeymasterBaseTest()
110 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
111 Authorization(TAG_NO_AUTH_REQUIRED), Authorization(TAG_ACTIVE_DATETIME, future_time), in TEST_F()
126 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), Authorization(TAG_ACTIVE_DATETIME, past_time), in TEST_F()
138 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
139 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, past_time), in TEST_F()
154 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
155 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, past_time), in TEST_F()
167 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
168 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, future_time), in TEST_F()
180 Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES), in TEST_F()
181 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
182 Authorization(TAG_USAGE_EXPIRE_DATETIME, past_time), in TEST_F()
194 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), in TEST_F()
195 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
196 Authorization(TAG_USAGE_EXPIRE_DATETIME, past_time), in TEST_F()
209 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
210 Authorization(TAG_USAGE_EXPIRE_DATETIME, past_time), in TEST_F()
222 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
223 Authorization(TAG_USAGE_EXPIRE_DATETIME, future_time), in TEST_F()
235 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
251 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), in TEST_F()
252 Authorization(TAG_MAX_USES_PER_BOOT, 4), in TEST_F()
274 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
275 Authorization(TAG_MAX_USES_PER_BOOT, 2), in TEST_F()
314 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
315 Authorization(TAG_MIN_SECONDS_BETWEEN_OPS, 10), in TEST_F()
337 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
338 Authorization(TAG_MIN_SECONDS_BETWEEN_OPS, 2), in TEST_F()
355 Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES), in TEST_F()
356 Authorization(TAG_MIN_SECONDS_BETWEEN_OPS, 4), in TEST_F()
357 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
457 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), in TEST_F()
458 Authorization(TAG_MIN_SECONDS_BETWEEN_OPS, 4), Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
481 AuthorizationSetBuilder().Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY)); in TEST_F()
491 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES) in TEST_F()
492 .Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY) in TEST_F()
493 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
508 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
509 .Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY) in TEST_F()
510 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
526 .Authorization(TAG_PURPOSE, KM_PURPOSE_ENCRYPT) in TEST_F()
527 .Authorization(TAG_PURPOSE, KM_PURPOSE_DECRYPT) in TEST_F()
528 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES)); in TEST_F()
530 .Authorization(TAG_PURPOSE, KM_PURPOSE_ENCRYPT) in TEST_F()
531 .Authorization(TAG_PURPOSE, KM_PURPOSE_DECRYPT) in TEST_F()
532 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_HMAC) in TEST_F()
533 .Authorization(TAG_CALLER_NONCE)); in TEST_F()
534 AuthorizationSet begin_params(AuthorizationSetBuilder().Authorization(TAG_NONCE, "foo", 3)); in TEST_F()
553 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN) in TEST_F()
554 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
555 .Authorization(TAG_BOOTLOADER_ONLY)); in TEST_F()
566 .Authorization(TAG_INVALID) in TEST_F()
567 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
584 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
585 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
586 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
589 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
607 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_EC) in TEST_F()
608 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
609 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
610 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
613 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
636 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
637 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
638 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
641 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
660 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
661 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
662 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
665 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
688 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
689 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
690 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_FINGERPRINT /* doesn't match token */) in TEST_F()
691 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
694 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
717 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
718 .Authorization(TAG_USER_SECURE_ID, token.user_id + 1 /* doesn't match token */) in TEST_F()
719 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
720 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
723 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
745 .Authorization(TAG_USER_SECURE_ID, token.authenticator_id) in TEST_F()
746 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
747 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
750 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
768 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
769 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
770 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
771 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
789 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES) in TEST_F()
790 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
791 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
792 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN) in TEST_F()
802 .Authorization(TAG_USER_SECURE_ID, 1) in TEST_F()
803 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_F()
804 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
821 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
822 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
823 .Authorization(TAG_AUTH_TIMEOUT, 1) in TEST_F()
824 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
825 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
828 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
846 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
847 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
848 .Authorization(TAG_AUTH_TIMEOUT, 1) in TEST_F()
849 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
850 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
853 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
896 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
897 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
898 .Authorization(TAG_AUTH_TIMEOUT, 1) in TEST_F()
899 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
900 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()