Home
last modified time | relevance | path

Searched refs:paramOutSet (Results 1 – 10 of 10) sorted by relevance

/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_attest_key_nonids_test.cpp106 struct HksParamSet *paramOutSet = nullptr; variable
107 HksInitParamSet(&paramOutSet);
108 HksAddParams(paramOutSet, &g_getParam, 1);
109 HksBuildParamSet(&paramOutSet);
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(&paramOutSet);
326 struct HksParamSet *paramOutSet = nullptr; variable
327 HksInitParamSet(&paramOutSet);
[all …]
Dhks_check_auth_part_test.cpp291 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(&paramOutSet, 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(&paramOutSet); in CheckGenAuthTest()
[all …]
Dhks_access_control_test_common.cpp850 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/
Dhks_upgrade_key_test.cpp217 struct HksParamSet *paramOutSet = nullptr; in TestCheckKeyVersionIsExpected() local
218 (void)HksInitParamSet(&paramOutSet); in TestCheckKeyVersionIsExpected()
219 (void)HksAddParams(paramOutSet, &getParam, 1); in TestCheckKeyVersionIsExpected()
220 (void)HksBuildParamSet(&paramOutSet); 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(&paramOutSet); in TestCheckKeyVersionIsExpected()
/base/security/huks/test/reliability/src/
Dpressure_test.cpp73 struct HksParamSet *paramOutSet = nullptr; in LocalHksGenerate() local
74 HksInitParamSet(&paramOutSet); in LocalHksGenerate()
80 HksFreeParamSet(&paramOutSet); in LocalHksGenerate()
83 HksAddParams(paramOutSet, &localKey, 1); in LocalHksGenerate()
84 HksBuildParamSet(&paramOutSet); in LocalHksGenerate()
86 if (HksGenerateKey(authId, paramSetIn, paramOutSet) != HKS_SUCCESS) { in LocalHksGenerate()
88 HksFreeParamSet(&paramOutSet); 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(&paramOutSet); in LocalHksGenerate()
[all …]
Dapi_pressure_test.cpp614 struct HksParamSet *paramOutSet = nullptr; in GetKeyParamSetTest() local
615 HksInitParamSet(&paramOutSet); in GetKeyParamSetTest()
621 HksAddParams(paramOutSet, &localKey, 1); in GetKeyParamSetTest()
622 HksBuildParamSet(&paramOutSet); in GetKeyParamSetTest()
626 EXPECT_EQ(HksGetKeyParamSet(authId, paramInSet, paramOutSet), HKS_SUCCESS); in GetKeyParamSetTest()
628 HksFreeParamSet(&paramOutSet); in GetKeyParamSetTest()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
Dhks_hmac_mt.cpp300 struct HksParamSet *paramOutSet = nullptr; in LocalHmacScenario() local
301 HksInitParamSet(&paramOutSet); in LocalHmacScenario()
307 HksAddParams(paramOutSet, &localKey, 1); in LocalHmacScenario()
308 HksBuildParamSet(&paramOutSet); 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(&paramOutSet); in LocalHmacScenario()
Dhks_ecc_key_mt.cpp459 struct HksParamSet *paramOutSet = nullptr; in RunTestCase() local
460 HksInitParamSet(&paramOutSet); in RunTestCase()
469 HksAddParams(paramOutSet, &localKey, 1); in RunTestCase()
471 HksBuildParamSet(&paramOutSet); 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(&paramOutSet); in RunTestCase()
Dhks_agree_mt.cpp58 struct HksParamSet *paramOutSet = nullptr; in LocalHksGenerate() local
59 HksInitParamSet(&paramOutSet); in LocalHksGenerate()
63 HksFreeParamSet(&paramOutSet); in LocalHksGenerate()
67 HksAddParams(paramOutSet, &localKey, 1); in LocalHksGenerate()
68 HksBuildParamSet(&paramOutSet); in LocalHksGenerate()
70 if (HksGenerateKey(authId, paramSetIn, paramOutSet) != HKS_SUCCESS) { in LocalHksGenerate()
72 HksFreeParamSet(&paramOutSet); 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(&paramOutSet); in LocalHksGenerate()
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/include/
Dhks_access_control_test_common.h134 int32_t GenParamSetAuthTest(struct HksParamSet **paramOutSet, const struct HksParamSet *genParamSet…