Lines Matching refs:Authorization
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()
174 Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES), in TEST_F()
175 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
176 Authorization(TAG_USAGE_EXPIRE_DATETIME, past_time), in TEST_F()
188 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), in TEST_F()
189 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
190 Authorization(TAG_USAGE_EXPIRE_DATETIME, past_time), in TEST_F()
203 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
204 Authorization(TAG_USAGE_EXPIRE_DATETIME, past_time), in TEST_F()
216 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
217 Authorization(TAG_USAGE_EXPIRE_DATETIME, future_time), in TEST_F()
229 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
243 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), in TEST_F()
244 Authorization(TAG_MAX_USES_PER_BOOT, 4), in TEST_F()
261 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
262 Authorization(TAG_MAX_USES_PER_BOOT, 2), in TEST_F()
295 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
296 Authorization(TAG_MIN_SECONDS_BETWEEN_OPS, 10), in TEST_F()
315 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
316 Authorization(TAG_MIN_SECONDS_BETWEEN_OPS, 2), in TEST_F()
331 Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES), in TEST_F()
332 Authorization(TAG_MIN_SECONDS_BETWEEN_OPS, 4), in TEST_F()
333 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
412 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), in TEST_F()
413 Authorization(TAG_MIN_SECONDS_BETWEEN_OPS, 4), Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
434 AuthorizationSetBuilder().Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY)); in TEST_F()
444 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES) in TEST_F()
445 .Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY) in TEST_F()
446 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
459 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
460 .Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY) in TEST_F()
461 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
474 .Authorization(TAG_PURPOSE, KM_PURPOSE_ENCRYPT) in TEST_F()
475 .Authorization(TAG_PURPOSE, KM_PURPOSE_DECRYPT) in TEST_F()
476 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES)); in TEST_F()
478 .Authorization(TAG_PURPOSE, KM_PURPOSE_ENCRYPT) in TEST_F()
479 .Authorization(TAG_PURPOSE, KM_PURPOSE_DECRYPT) in TEST_F()
480 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_HMAC) in TEST_F()
481 .Authorization(TAG_CALLER_NONCE)); in TEST_F()
482 AuthorizationSet begin_params(AuthorizationSetBuilder().Authorization(TAG_NONCE, "foo", 3)); in TEST_F()
500 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN) in TEST_F()
501 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
502 .Authorization(TAG_BOOTLOADER_ONLY)); in TEST_F()
512 .Authorization(TAG_INVALID) in TEST_F()
513 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
530 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
531 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
532 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
535 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
553 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_EC) in TEST_F()
554 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
555 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
556 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
559 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
582 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
583 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
584 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
587 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
606 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
607 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
608 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
611 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
634 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
635 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
636 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_FINGERPRINT /* doesn't match token */) in TEST_F()
637 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
640 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
663 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
664 .Authorization(TAG_USER_SECURE_ID, token.user_id + 1 /* doesn't match token */) in TEST_F()
665 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
666 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
669 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
691 .Authorization(TAG_USER_SECURE_ID, token.authenticator_id) in TEST_F()
692 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
693 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
696 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
714 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
715 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
716 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
717 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
734 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES) in TEST_F()
735 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
736 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
737 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN) in TEST_F()
747 .Authorization(TAG_USER_SECURE_ID, 1) in TEST_F()
748 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_F()
749 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
766 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
767 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
768 .Authorization(TAG_AUTH_TIMEOUT, 1) in TEST_F()
769 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
770 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
773 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
791 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
792 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
793 .Authorization(TAG_AUTH_TIMEOUT, 1) in TEST_F()
794 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
795 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
798 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
840 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
841 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
842 .Authorization(TAG_AUTH_TIMEOUT, 1) in TEST_F()
843 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
844 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()