/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
D | hks_attest_key_nonids_test.cpp | 106 struct HksParamSet *paramOutSet = nullptr; variable 107 HksInitParamSet(¶mOutSet); 108 HksAddParams(paramOutSet, &g_getParam, 1); 109 HksBuildParamSet(¶mOutSet); 111 ret = HksGetKeyParamSet(&g_keyAlias, nullptr, paramOutSet); 114 ret = HksGetParam(paramOutSet, HKS_TAG_KEY_SIZE, &keySizeParam); 118 ret = HksGetParam(paramOutSet, HKS_TAG_PROCESS_NAME, &processParam); 124 HksFreeParamSet(¶mOutSet); 326 struct HksParamSet *paramOutSet = nullptr; variable 327 HksInitParamSet(¶mOutSet); [all …]
|
D | hks_check_auth_part_test.cpp | 291 static int32_t getParamSetAuthTest(struct HksParamSet **paramOutSet, const struct HksParamSet *genP… in getParamSetAuthTest() argument 301 HksInitParamSet(paramOutSet); in getParamSetAuthTest() 315 HksAddParams(*paramOutSet, &localSecureKey, 1); in getParamSetAuthTest() 316 HksBuildParamSet(paramOutSet); in getParamSetAuthTest() 338 struct HksParamSet *paramOutSet = nullptr; in CheckGenAuthTest() local 339 getParamSetAuthTest(¶mOutSet, genParamSet); in CheckGenAuthTest() 341 ret = HksGetKeyParamSet(&keyAlias, genParamSet, paramOutSet); in CheckGenAuthTest() 347 ret = HksGetParam(paramOutSet, HKS_TAG_KEY_AUTH_ACCESS_TYPE, &secureParam); in CheckGenAuthTest() 350 if (ret != HksGetParam(paramOutSet, HKS_TAG_USER_AUTH_TYPE, &userParam)) { in CheckGenAuthTest() 354 HksFreeParamSet(¶mOutSet); in CheckGenAuthTest() [all …]
|
D | hks_access_control_test_common.cpp | 850 int32_t GenParamSetAuthTest(struct HksParamSet **paramOutSet, const struct HksParamSet *genParamSet) in GenParamSetAuthTest() argument 860 int32_t ret = HksInitParamSet(paramOutSet); in GenParamSetAuthTest() 881 ret = HksAddParams(*paramOutSet, &localSecureKey, 1); in GenParamSetAuthTest() 883 ret = HksBuildParamSet(paramOutSet); in GenParamSetAuthTest()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/upgrade_key_test/src/ |
D | hks_upgrade_key_test.cpp | 217 struct HksParamSet *paramOutSet = nullptr; in TestCheckKeyVersionIsExpected() local 218 (void)HksInitParamSet(¶mOutSet); in TestCheckKeyVersionIsExpected() 219 (void)HksAddParams(paramOutSet, &getParam, 1); in TestCheckKeyVersionIsExpected() 220 (void)HksBuildParamSet(¶mOutSet); in TestCheckKeyVersionIsExpected() 222 int32_t ret = HksGetKeyParamSet(keyAlias, nullptr, paramOutSet); in TestCheckKeyVersionIsExpected() 226 ret = HksGetParam(paramOutSet, HKS_TAG_KEY_VERSION, &keyVersion); in TestCheckKeyVersionIsExpected() 229 HksFreeParamSet(¶mOutSet); in TestCheckKeyVersionIsExpected()
|
/base/security/huks/test/reliability/src/ |
D | pressure_test.cpp | 73 struct HksParamSet *paramOutSet = nullptr; in LocalHksGenerate() local 74 HksInitParamSet(¶mOutSet); in LocalHksGenerate() 80 HksFreeParamSet(¶mOutSet); in LocalHksGenerate() 83 HksAddParams(paramOutSet, &localKey, 1); in LocalHksGenerate() 84 HksBuildParamSet(¶mOutSet); in LocalHksGenerate() 86 if (HksGenerateKey(authId, paramSetIn, paramOutSet) != HKS_SUCCESS) { in LocalHksGenerate() 88 HksFreeParamSet(¶mOutSet); in LocalHksGenerate() 93 HksGetParam(paramOutSet, HKS_TAG_ASYMMETRIC_PRIVATE_KEY_DATA, &priParam); in LocalHksGenerate() 98 HksGetParam(paramOutSet, HKS_TAG_ASYMMETRIC_PUBLIC_KEY_DATA, &pubParam); in LocalHksGenerate() 103 HksFreeParamSet(¶mOutSet); in LocalHksGenerate() [all …]
|
D | api_pressure_test.cpp | 614 struct HksParamSet *paramOutSet = nullptr; in GetKeyParamSetTest() local 615 HksInitParamSet(¶mOutSet); in GetKeyParamSetTest() 621 HksAddParams(paramOutSet, &localKey, 1); in GetKeyParamSetTest() 622 HksBuildParamSet(¶mOutSet); in GetKeyParamSetTest() 626 EXPECT_EQ(HksGetKeyParamSet(authId, paramInSet, paramOutSet), HKS_SUCCESS); in GetKeyParamSetTest() 628 HksFreeParamSet(¶mOutSet); in GetKeyParamSetTest()
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/ |
D | hks_hmac_mt.cpp | 300 struct HksParamSet *paramOutSet = nullptr; in LocalHmacScenario() local 301 HksInitParamSet(¶mOutSet); in LocalHmacScenario() 307 HksAddParams(paramOutSet, &localKey, 1); in LocalHmacScenario() 308 HksBuildParamSet(¶mOutSet); in LocalHmacScenario() 310 … EXPECT_EQ(HksGenerateKey(authId, paramInSet, paramOutSet), testCaseParams.generateKeyResult); in LocalHmacScenario() 316 HksGetParam(paramOutSet, HKS_TAG_SYMMETRIC_KEY_DATA, &outParam); in LocalHmacScenario() 332 HksFreeParamSet(¶mOutSet); in LocalHmacScenario()
|
D | hks_ecc_key_mt.cpp | 459 struct HksParamSet *paramOutSet = nullptr; in RunTestCase() local 460 HksInitParamSet(¶mOutSet); in RunTestCase() 469 HksAddParams(paramOutSet, &localKey, 1); in RunTestCase() 471 HksBuildParamSet(¶mOutSet); in RunTestCase() 473 … EXPECT_EQ(HksGenerateKey(&authId, paramInSet, paramOutSet), testCaseParams.generateKeyResult); in RunTestCase() 475 HksGetParam(paramOutSet, HKS_TAG_ASYMMETRIC_PRIVATE_KEY_DATA, &priParam); in RunTestCase() 481 HksGetParam(paramOutSet, HKS_TAG_ASYMMETRIC_PUBLIC_KEY_DATA, &pubParam); in RunTestCase() 499 HksFreeParamSet(¶mOutSet); in RunTestCase()
|
D | hks_agree_mt.cpp | 58 struct HksParamSet *paramOutSet = nullptr; in LocalHksGenerate() local 59 HksInitParamSet(¶mOutSet); in LocalHksGenerate() 63 HksFreeParamSet(¶mOutSet); in LocalHksGenerate() 67 HksAddParams(paramOutSet, &localKey, 1); in LocalHksGenerate() 68 HksBuildParamSet(¶mOutSet); in LocalHksGenerate() 70 if (HksGenerateKey(authId, paramSetIn, paramOutSet) != HKS_SUCCESS) { in LocalHksGenerate() 72 HksFreeParamSet(¶mOutSet); in LocalHksGenerate() 77 HksGetParam(paramOutSet, HKS_TAG_ASYMMETRIC_PRIVATE_KEY_DATA, &priParam); in LocalHksGenerate() 82 HksGetParam(paramOutSet, HKS_TAG_ASYMMETRIC_PUBLIC_KEY_DATA, &pubParam); in LocalHksGenerate() 87 HksFreeParamSet(¶mOutSet); in LocalHksGenerate()
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/include/ |
D | hks_access_control_test_common.h | 134 int32_t GenParamSetAuthTest(struct HksParamSet **paramOutSet, const struct HksParamSet *genParamSet…
|