Home
last modified time | relevance | path

Searched refs:key_characteristics (Results 1 – 13 of 13) sorted by relevance

/hardware/interfaces/security/keymint/aidl/vts/functional/
DDeviceUniqueAttestationTest.cpp31 const vector<KeyCharacteristics>& key_characteristics, in CheckUniqueAttestationResults() argument
41 AuthorizationSet crypto_params = SecLevelAuthorizations(key_characteristics); in CheckUniqueAttestationResults()
54 AuthorizationSet sw_enforced = SwEnforcedAuthorizations(key_characteristics); in CheckUniqueAttestationResults()
73 vector<KeyCharacteristics> key_characteristics; in TEST_P() local
88 /*attest_key=*/std::nullopt, &key_blob, &key_characteristics, &cert_chain_); in TEST_P()
106 vector<KeyCharacteristics> key_characteristics; in TEST_P() local
120 /*attest_key=*/std::nullopt, &key_blob, &key_characteristics, &cert_chain_); in TEST_P()
138 vector<KeyCharacteristics> key_characteristics; in TEST_P() local
152 &key_blob, &key_characteristics); in TEST_P()
172 for (const auto& entry : key_characteristics) { in TEST_P()
[all …]
DKeyMintTest.cpp689 vector<KeyCharacteristics> key_characteristics; in TEST_P() local
698 ASSERT_EQ(ErrorCode::OK, GenerateKey(builder, &key_blob, &key_characteristics)); in TEST_P()
702 CheckSymmetricParams(key_characteristics); in TEST_P()
703 CheckCharacteristics(key_blob, key_characteristics); in TEST_P()
705 AuthorizationSet crypto_params = SecLevelAuthorizations(key_characteristics); in TEST_P()
728 vector<KeyCharacteristics> key_characteristics; in TEST_P() local
738 GenerateKey(builder, &key_blob, &key_characteristics)); in TEST_P()
747 vector<KeyCharacteristics> key_characteristics; in TEST_P() local
758 GenerateKey(builder, &key_blob, &key_characteristics)); in TEST_P()
820 vector<KeyCharacteristics> key_characteristics; in TEST_P() local
[all …]
DKeyMintAidlTestBase.h103 uint32_t boot_patch_level(const vector<KeyCharacteristics>& key_characteristics);
114 vector<KeyCharacteristics>* key_characteristics);
118 vector<KeyCharacteristics>* key_characteristics,
123 vector<KeyCharacteristics>* key_characteristics);
140 vector<KeyCharacteristics>* key_characteristics);
142 vector<KeyCharacteristics>* key_characteristics);
337 const vector<KeyCharacteristics>& key_characteristics);
342 const vector<KeyCharacteristics>& key_characteristics, SecurityLevel securityLevel);
352 vector<KeyCharacteristics>* key_characteristics,
362 const vector<KeyCharacteristics>& key_characteristics,
[all …]
DKeyBlobUpgradeTest.cpp127 const std::vector<KeyCharacteristics>& key_characteristics) { in save_keyblob() argument
138 for (const auto& characteristic : key_characteristics) { in save_keyblob()
153 const std::vector<KeyCharacteristics>& key_characteristics, in save_keyblob_and_cert() argument
155 save_keyblob(subdir, name, keyblob, key_characteristics); in save_keyblob_and_cert()
270 std::vector<KeyCharacteristics> key_characteristics; in UpgradeKeyBlobs() local
272 &key_characteristics); in UpgradeKeyBlobs()
276 save_keyblob(subdir, name, upgraded_keyblob, key_characteristics); in UpgradeKeyBlobs()
392 vector<KeyCharacteristics> key_characteristics; in TEST_P() local
395 GenerateKey(builder, std::nullopt, &keyblob, &key_characteristics, &cert_chain); in TEST_P()
405 save_keyblob_and_cert(subdir, name, keyblob, key_characteristics, cert_chain); in TEST_P()
DAuthTest.cpp321 vector<KeyCharacteristics> key_characteristics; in TEST_P() local
324 GenerateKey(builder, std::nullopt, &keyblob, &key_characteristics, &cert_chain)); in TEST_P()
397 vector<KeyCharacteristics> key_characteristics; in TEST_P() local
400 GenerateKey(builder, std::nullopt, &keyblob, &key_characteristics, &cert_chain)); in TEST_P()
457 vector<KeyCharacteristics> key_characteristics; in TEST_P() local
458 auto result = GenerateKey(builder, &keyblob, &key_characteristics); in TEST_P()
498 vector<KeyCharacteristics> key_characteristics; in TEST_P() local
501 GenerateKey(builder, std::nullopt, &keyblob, &key_characteristics, &cert_chain)); in TEST_P()
567 vector<KeyCharacteristics> key_characteristics; in TEST_P() local
570 GenerateKey(builder, std::nullopt, &keyblob, &key_characteristics, &cert_chain)); in TEST_P()
[all …]
DKeyMintAidlTestBase.cpp94 const vector<KeyCharacteristics>& key_characteristics, in KeyCharacteristicsBasicallyValid() argument
96 if (key_characteristics.empty()) return false; in KeyCharacteristicsBasicallyValid()
99 for (auto& entry : key_characteristics) { in KeyCharacteristicsBasicallyValid()
216 const vector<KeyCharacteristics>& key_characteristics) { in boot_patch_level() argument
220 for (auto& entry : key_characteristics) { in boot_patch_level()
316 vector<KeyCharacteristics>* key_characteristics) { in GenerateKey() argument
335 GenerateKey(key_desc, attest_key, key_blob, key_characteristics, &cert_chain_); in GenerateKey()
347 vector<KeyCharacteristics>* key_characteristics, in GenerateKey() argument
350 EXPECT_NE(key_characteristics, nullptr) in GenerateKey()
360 *key_characteristics = std::move(creationResult.keyCharacteristics); in GenerateKey()
[all …]
DBootloaderStateTest.cpp48 vector<KeyCharacteristics> key_characteristics; in SetUp() local
56 auto result = GenerateKey(keyDesc, &key_blob, &key_characteristics); in SetUp()
DAttestKeyTest.cpp848 vector<KeyCharacteristics> key_characteristics; in TEST_P() local
/hardware/interfaces/keymaster/4.0/vts/functional/
DKeymasterHidlTest.cpp68 KeyCharacteristics* key_characteristics) { in GenerateKey() argument
71 EXPECT_NE(key_characteristics, nullptr) in GenerateKey()
81 *key_characteristics = hidl_key_characteristics; in GenerateKey()
87 EXPECT_EQ(0U, (key_characteristics->softwareEnforced.size() + in GenerateKey()
88 key_characteristics->hardwareEnforced.size())); in GenerateKey()
99 KeyCharacteristics* key_characteristics) { in ImportKey() argument
107 *key_characteristics = hidl_key_characteristics; in ImportKey()
113 EXPECT_EQ(0U, (key_characteristics->softwareEnforced.size() + in ImportKey()
114 key_characteristics->hardwareEnforced.size())); in ImportKey()
194 KeyCharacteristics* key_characteristics) { in CheckGetCharacteristics() argument
[all …]
DKeymasterHidlTest.h102 KeyCharacteristics* key_characteristics);
107 KeyCharacteristics* key_characteristics);
128 const HidlBuf& app_data, KeyCharacteristics* key_characteristics);
130 const HidlBuf& app_data, KeyCharacteristics* key_characteristics);
131 ErrorCode GetCharacteristics(const HidlBuf& key_blob, KeyCharacteristics* key_characteristics);
Dkeymaster_hidl_hal_test.cpp614 const KeyCharacteristics& key_characteristics) { in CheckCharacteristics() argument
617 EXPECT_EQ(key_characteristics, retrieved_chars); in CheckCharacteristics()
630 KeyCharacteristics key_characteristics; in TEST_P() local
635 &key_blob, &key_characteristics)); in TEST_P()
638 CheckBaseParams(key_characteristics); in TEST_P()
639 CheckCharacteristics(key_blob, key_characteristics); in TEST_P()
643 crypto_params = key_characteristics.hardwareEnforced; in TEST_P()
645 crypto_params = key_characteristics.softwareEnforced; in TEST_P()
665 KeyCharacteristics key_characteristics; in TEST_P() local
671 &key_blob, &key_characteristics)); in TEST_P()
[all …]
/hardware/interfaces/keymaster/3.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp455 KeyCharacteristics* key_characteristics) { in GenerateKey() argument
457 EXPECT_NE(key_characteristics, nullptr); in GenerateKey()
467 *key_characteristics = hidl_key_characteristics; in GenerateKey()
473 EXPECT_EQ(0U, (key_characteristics->softwareEnforced.size() + in GenerateKey()
474 key_characteristics->teeEnforced.size())); in GenerateKey()
485 KeyCharacteristics* key_characteristics) { in ImportKey() argument
493 *key_characteristics = hidl_key_characteristics; in ImportKey()
499 EXPECT_EQ(0U, (key_characteristics->softwareEnforced.size() + in ImportKey()
500 key_characteristics->teeEnforced.size())); in ImportKey()
557 const HidlBuf& app_data, KeyCharacteristics* key_characteristics) { in GetCharacteristics() argument
[all …]
/hardware/interfaces/security/rkp/aidl/vts/functional/
DVtsRemotelyProvisionedComponentTests.cpp943 vector<KeyCharacteristics> key_characteristics = std::move(creationResult.keyCharacteristics); in TEST_P() local
949 auto auths = HwEnforcedAuthorizations(key_characteristics); in TEST_P()