Home
last modified time | relevance | path

Searched refs:auths (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/keymaster/3.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp1052 AuthorizationSet auths(keyCharacteristics.teeEnforced); in CheckBaseParams() local
1053 auths.push_back(AuthorizationSet(keyCharacteristics.softwareEnforced)); in CheckBaseParams()
1056 EXPECT_TRUE(auths.Contains(TAG_ORIGIN, KeyOrigin::UNKNOWN)); in CheckBaseParams()
1058 EXPECT_TRUE(auths.Contains(TAG_ORIGIN, KeyOrigin::GENERATED)); in CheckBaseParams()
1061 EXPECT_TRUE(auths.Contains(TAG_PURPOSE, KeyPurpose::SIGN)); in CheckBaseParams()
1062 EXPECT_TRUE(auths.Contains(TAG_PURPOSE, KeyPurpose::VERIFY)); in CheckBaseParams()
1063 EXPECT_TRUE(auths.Contains(TAG_USER_ID, 7)) in CheckBaseParams()
1064 << "User ID should be 7, was " << auths.GetTagValue(TAG_USER_ID); in CheckBaseParams()
1067 EXPECT_FALSE(auths.Contains(TAG_ROOT_OF_TRUST)); in CheckBaseParams()
1068 EXPECT_FALSE(auths.Contains(TAG_APPLICATION_ID)); in CheckBaseParams()
[all …]
/hardware/interfaces/keymaster/4.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp492 AuthorizationSet auths(keyCharacteristics.hardwareEnforced); in CheckBaseParams() local
493 auths.push_back(AuthorizationSet(keyCharacteristics.softwareEnforced)); in CheckBaseParams()
495 EXPECT_TRUE(auths.Contains(TAG_ORIGIN, KeyOrigin::GENERATED)); in CheckBaseParams()
496 EXPECT_TRUE(auths.Contains(TAG_PURPOSE, KeyPurpose::SIGN)); in CheckBaseParams()
497 EXPECT_TRUE(auths.Contains(TAG_PURPOSE, KeyPurpose::VERIFY)); in CheckBaseParams()
500 EXPECT_FALSE(auths.Contains(TAG_ROOT_OF_TRUST)); in CheckBaseParams()
501 EXPECT_FALSE(auths.Contains(TAG_APPLICATION_ID)); in CheckBaseParams()
502 EXPECT_FALSE(auths.Contains(TAG_APPLICATION_DATA)); in CheckBaseParams()
505 EXPECT_FALSE(auths.Contains(TAG_PURPOSE, KeyPurpose::ENCRYPT)); in CheckBaseParams()
506 EXPECT_FALSE(auths.Contains(TAG_PURPOSE, KeyPurpose::DECRYPT)); in CheckBaseParams()
[all …]