Lines Matching refs:Authorization
81 sign_param = Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN); in KeymasterBaseTest()
110 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), in TEST_F()
111 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
112 Authorization(TAG_NO_AUTH_REQUIRED), in TEST_F()
113 Authorization(TAG_ACTIVE_DATETIME, future_time), in TEST_F()
128 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
129 Authorization(TAG_ACTIVE_DATETIME, past_time), in TEST_F()
141 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), in TEST_F()
142 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
143 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, past_time), in TEST_F()
158 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
159 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, past_time), in TEST_F()
171 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
172 Authorization(TAG_ORIGINATION_EXPIRE_DATETIME, future_time), in TEST_F()
184 Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES), in TEST_F()
185 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
186 Authorization(TAG_USAGE_EXPIRE_DATETIME, past_time), in TEST_F()
198 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), in TEST_F()
199 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
200 Authorization(TAG_USAGE_EXPIRE_DATETIME, past_time), in TEST_F()
213 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
214 Authorization(TAG_USAGE_EXPIRE_DATETIME, past_time), in TEST_F()
226 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
227 Authorization(TAG_USAGE_EXPIRE_DATETIME, future_time), in TEST_F()
239 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
255 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
256 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), in TEST_F()
257 Authorization(TAG_MAX_USES_PER_BOOT, 4), in TEST_F()
279 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), in TEST_F()
280 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
281 Authorization(TAG_MAX_USES_PER_BOOT, 2), in TEST_F()
320 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), in TEST_F()
321 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
322 Authorization(TAG_MIN_SECONDS_BETWEEN_OPS, 10), in TEST_F()
344 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
345 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
346 Authorization(TAG_MIN_SECONDS_BETWEEN_OPS, 2), in TEST_F()
363 Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES), in TEST_F()
364 Authorization(TAG_MIN_SECONDS_BETWEEN_OPS, 4), in TEST_F()
365 Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY), in TEST_F()
465 Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA), in TEST_F()
466 Authorization(TAG_MIN_SECONDS_BETWEEN_OPS, 4), in TEST_F()
467 Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN), in TEST_F()
490 AuthorizationSetBuilder().Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY)); in TEST_F()
500 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES) in TEST_F()
501 .Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY) in TEST_F()
502 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
517 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
518 .Authorization(TAG_PURPOSE, KM_PURPOSE_VERIFY) in TEST_F()
519 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
535 .Authorization(TAG_PURPOSE, KM_PURPOSE_ENCRYPT) in TEST_F()
536 .Authorization(TAG_PURPOSE, KM_PURPOSE_DECRYPT) in TEST_F()
537 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES)); in TEST_F()
539 .Authorization(TAG_PURPOSE, KM_PURPOSE_ENCRYPT) in TEST_F()
540 .Authorization(TAG_PURPOSE, KM_PURPOSE_DECRYPT) in TEST_F()
541 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_HMAC) in TEST_F()
542 .Authorization(TAG_CALLER_NONCE)); in TEST_F()
543 AuthorizationSet begin_params(AuthorizationSetBuilder().Authorization(TAG_NONCE, "foo", 3)); in TEST_F()
562 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN) in TEST_F()
563 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
564 .Authorization(TAG_BOOTLOADER_ONLY)); in TEST_F()
575 .Authorization(TAG_INVALID) in TEST_F()
576 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
593 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
594 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
595 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
598 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
616 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_EC) in TEST_F()
617 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
618 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
619 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
622 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
645 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
646 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
647 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
650 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
669 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
670 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
671 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
674 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
697 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
698 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
699 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_FINGERPRINT /* doesn't match token */) in TEST_F()
700 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
703 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
726 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
727 .Authorization(TAG_USER_SECURE_ID, token.user_id + 1 /* doesn't match token */) in TEST_F()
728 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
729 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
732 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
754 .Authorization(TAG_USER_SECURE_ID, token.authenticator_id) in TEST_F()
755 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
756 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
759 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
777 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
778 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
779 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
780 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
798 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_AES) in TEST_F()
799 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
800 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
801 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN) in TEST_F()
811 .Authorization(TAG_USER_SECURE_ID, 1) in TEST_F()
812 .Authorization(TAG_NO_AUTH_REQUIRED) in TEST_F()
813 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
830 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
831 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
832 .Authorization(TAG_AUTH_TIMEOUT, 1) in TEST_F()
833 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
834 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
837 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
855 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
856 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
857 .Authorization(TAG_AUTH_TIMEOUT, 1) in TEST_F()
858 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
859 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()
862 op_params.push_back(Authorization(TAG_AUTH_TOKEN, &token, sizeof(token))); in TEST_F()
905 .Authorization(TAG_ALGORITHM, KM_ALGORITHM_RSA) in TEST_F()
906 .Authorization(TAG_USER_SECURE_ID, token.user_id) in TEST_F()
907 .Authorization(TAG_AUTH_TIMEOUT, 1) in TEST_F()
908 .Authorization(TAG_USER_AUTH_TYPE, HW_AUTH_ANY) in TEST_F()
909 .Authorization(TAG_PURPOSE, KM_PURPOSE_SIGN)); in TEST_F()