Home
last modified time | relevance | path

Searched refs:privateKey (Results 1 - 6 of 6) sorted by relevance

/test/xts/acts/security_lite/huks/liteos_a_adapter/
H A Dhks_agreement_test.cpp77 static int32_t AgreeKey(const struct HksTestAgreeParamSet *agreeParamSetParams, struct HksBlob *privateKey, in AgreeKey() argument
91 ret = HksAgreeKeyRun(agreeParamSet, privateKey, peerPublicKey, agreedKey, 1); in AgreeKey()
104 struct HksBlob *privateKey = NULL; in HWTEST_F() local
111 ret = GenerateLocalX25519Key(&privateKey, NULL, &g_testAgreeParams[0].localPrivateKeyParams, NULL); in HWTEST_F()
125 ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey, peerPublicKey, agreeKey); in HWTEST_F()
133 ret = HksDeleteKey(privateKey, NULL); in HWTEST_F()
138 TestFreeBlob(&privateKey); in HWTEST_F()
153 struct HksBlob *privateKey = NULL; in HWTEST_F() local
162 ret = GenerateLocalX25519Key(&privateKey, &peerPublicKey, &g_testAgreeParams[0].localPrivateKeyParams, \ in HWTEST_F()
182 ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey, peerPublicKey in HWTEST_F()
[all...]
/test/xts/acts/security_lite/huks/liteos_m_adapter/
H A Dhks_agreement_test.c104 static int32_t AgreeKey(const struct HksTestAgreeParamSet *agreeParamSetParams, struct HksBlob *privateKey, in AgreeKey() argument
118 ret = HksAgreeKeyRun(agreeParamSet, privateKey, peerPublicKey, agreedKey, 1); in AgreeKey()
128 struct HksBlob *privateKey = NULL; in ExecHksAgreementTest001() local
135 ret = GenerateLocalX25519Key(&privateKey, NULL, &g_testAgreeParams[0].localPrivateKeyParams, NULL); in ExecHksAgreementTest001()
149 ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey, peerPublicKey, agreeKey); in ExecHksAgreementTest001()
157 ret = HksDeleteKey(privateKey, NULL); in ExecHksAgreementTest001()
162 TestFreeBlob(&privateKey); in ExecHksAgreementTest001()
177 struct HksBlob *privateKey = NULL; in ExecHksAgreementTest002() local
184 ret = GenerateLocalX25519Key(&privateKey, NULL, &g_testAgreeParams[0].localPrivateKeyParams, NULL); in ExecHksAgreementTest002()
198 ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey, peerPublicKe in ExecHksAgreementTest002()
[all...]
/test/xts/acts/security_lite/huks/common/
H A Dhks_test_common.c638 int32_t GenerateLocalX25519Key(struct HksBlob **privateKey, struct HksBlob **publicKey, in GenerateLocalX25519Key() argument
642 if ((privateKey != NULL) && (localPrivateKeyParams != NULL)) { in GenerateLocalX25519Key()
643 ret = TestConstuctBlob(privateKey, in GenerateLocalX25519Key()
683 if ((privateKey != NULL) && ((*privateKey) != NULL) && in GenerateLocalX25519Key()
686 (void)memcpy_s((*privateKey)->data, (*privateKey)->size, in GenerateLocalX25519Key()
H A Dhks_test_api_performance.c170 int32_t HksAgreeKeyRun(const struct HksParamSet *paramSet, const struct HksBlob *privateKey, in HksAgreeKeyRun() argument
184 ret = HksAgreeKey(paramSet, privateKey, peerPublicKey, agreedKey); in HksAgreeKeyRun()
/test/xts/acts/security_lite/huks/common/include/
H A Dhks_test_api_performance.h48 int32_t HksAgreeKeyRun(const struct HksParamSet *paramSet, const struct HksBlob *privateKey,
H A Dhks_test_common.h405 int32_t GenerateLocalX25519Key(struct HksBlob **privateKey, struct HksBlob **publicKey,

Completed in 4 milliseconds