Home
last modified time | relevance | path

Searched refs:peerPublicKey (Results 1 – 25 of 40) sorted by relevance

12

/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/
Dhks_agreement_test.cpp79 struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in AgreeKey() argument
92 ret = HksAgreeKeyRun(agreeParamSetTest, privateKey, peerPublicKey, agreedKey, 1); in AgreeKey()
107 struct HksBlob *peerPublicKey = NULL; variable
114 …ret = GenerateLocalX25519Key(NULL, &peerPublicKey, NULL, &g_testAgreeParams[0].localPublicKeyParam…
126 ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey, peerPublicKey, agreeKey);
141 TestFreeBlob(&peerPublicKey);
156 struct HksBlob *peerPublicKey = NULL; variable
163 …ret = GenerateLocalX25519Key(&privateKey, &peerPublicKey, &g_testAgreeParams[0].localPrivateKeyPar…
186 … ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey2, peerPublicKey, agreeKey2);
200 TestFreeBlob(&peerPublicKey);
/base/security/huks/test/unittest/huks_lite_test/liteos_m_adapter/
Dhks_agreement_test.c81 struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in AgreeKey() argument
94 ret = HksAgreeKeyRun(agreeParamSet, privateKey, peerPublicKey, agreedKey, 1); in AgreeKey()
109 struct HksBlob *peerPublicKey = NULL; in LITE_TEST_CASE() local
116 …ret = GenerateLocalX25519Key(NULL, &peerPublicKey, NULL, &g_testAgreeParams[0].localPublicKeyParam… in LITE_TEST_CASE()
128 ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey, peerPublicKey, agreeKey); in LITE_TEST_CASE()
143 TestFreeBlob(&peerPublicKey); in LITE_TEST_CASE()
159 struct HksBlob *peerPublicKey = NULL; in LITE_TEST_CASE() local
167 …ret = GenerateLocalX25519Key(&privateKey, &peerPublicKey, &g_testAgreeParams[0].localPrivateKeyPar… in LITE_TEST_CASE()
190 … ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey1, peerPublicKey, agreeKey1); in LITE_TEST_CASE()
206 TestFreeBlob(&peerPublicKey); in LITE_TEST_CASE()
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
Dhks_ipc_check.c143 const struct HksBlob *peerPublicKey, const struct HksBlob *agreedKey) in HksCheckIpcAgreeKey() argument
145 int32_t ret = HksCheckBlob3AndParamSet(privateKey, peerPublicKey, agreedKey, paramSet); in HksCheckIpcAgreeKey()
148 if ((privateKey->size > MAX_PROCESS_SIZE) || (peerPublicKey->size > MAX_PROCESS_SIZE)) { in HksCheckIpcAgreeKey()
152 …sizeof(peerPublicKey->size) + ALIGN_SIZE(peerPublicKey->size) + sizeof(agreedKey->size) > MAX_PROC… in HksCheckIpcAgreeKey()
/base/security/huks/interfaces/inner_api/huks_standard/main/src/
Dhks_api_adapter.h31 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey);
Dhks_api_adapter.c70 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in HksAgreeKeyAdapter() argument
73 int32_t ret = GetHksPubKeyInnerFormat(paramSet, peerPublicKey, &publicKey); in HksAgreeKeyAdapter()
Dhks_api.c378 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in HksAgreeKey() argument
382 …if ((paramSet == NULL) || (privateKey == NULL) || (peerPublicKey == NULL) || (agreedKey == NULL)) { in HksAgreeKey()
389 ret = HksLocalAgreeKey(paramSet, privateKey, peerPublicKey, agreedKey); in HksAgreeKey()
394 ret = HksAgreeKeyAdapter(paramSet, privateKey, peerPublicKey, agreedKey); in HksAgreeKey()
400 (void)peerPublicKey; in HksAgreeKey()
/base/security/huks/services/huks_standard/huks_engine/main/core/include/
Dhks_sm_import_wrap_key.h29 struct HksBlob peerPublicKey; member
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_agreement_test.cpp79 struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in AgreeKey() argument
92 ret = HksAgreeKeyRun(agreeParamSetTest, privateKey, peerPublicKey, agreedKey, 1); in AgreeKey()
Dhks_test_api_performance.c170 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey, uint32_t performTimes) in HksAgreeKeyRun() argument
183 ret = HksAgreeKey(paramSet, privateKey, peerPublicKey, agreedKey); in HksAgreeKeyRun()
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/ca/
Dhks_ca_access.c84 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in HksAccessAgreeKey() argument
86 return HksTeeAgreeKey(paramSet, privateKey, peerPublicKey, agreedKey); in HksAccessAgreeKey()
Dhks_teec.h58 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey);
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/include/
Dhks_ipc_check.h47 const struct HksBlob *peerPublicKey, const struct HksBlob *agreedKey);
Dhks_client_ipc_serialization.h60 const struct HksBlob *peerPublicKey, const struct HksBlob *agreedKey);
Dhks_client_ipc.h63 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey);
/base/security/huks/frameworks/huks_standard/main/core/include/
Dhks_local_engine.h43 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey);
/base/security/huks/test/unittest/huks_standard_test/module_test/mock/idl/src/
Dhuks_access_mock.c134 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey)) in ENABLE_CFI() argument
136 return HksCoreAgreeKey(paramSet, privateKey, peerPublicKey, agreedKey); in ENABLE_CFI()
/base/security/huks/test/unittest/huks_common_test/include/
Dhks_test_api_performance_h.h44 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey, uint32_t performTimes);
/base/security/huks/frameworks/huks_standard/main/common/include/
Dhks_check_paramset.h44 const struct HksBlob *peerPublicKey, const struct HksBlob *agreedKey, bool isLocalCheck);
/base/security/huks/frameworks/huks_standard/main/core/src/
Dhks_local_engine.c122 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in HksLocalAgreeKey() argument
124 HKS_IF_NOT_SUCC_RETURN(HksCheckBlob3AndParamSet(privateKey, peerPublicKey, agreedKey, paramSet), in HksLocalAgreeKey()
127 int32_t ret = HksCoreCheckAgreeKeyParams(paramSet, privateKey, peerPublicKey, agreedKey, true); in HksLocalAgreeKey()
138 ret = HksSetKeyToMaterial(spec.algType, true, peerPublicKey, &publicKeyMaterial); in HksLocalAgreeKey()
/base/security/huks/test/unittest/huks_lite_test/common/
Dhks_test_api_performance.c164 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey, uint32_t performTimes) in HksAgreeKeyRun() argument
176 int32_t ret = HksAgreeKey(paramSet, privateKey, peerPublicKey, agreedKey); in HksAgreeKeyRun()
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_core_interfaces.c139 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in HuksHdiAgreeKey() argument
141 return HksCoreAgreeKey(paramSet, privateKey, peerPublicKey, agreedKey); in HuksHdiAgreeKey()
Dhks_core_service.c221 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in GenAgreeKey() argument
241 ret = HksCryptoHalAgreeKey(privateKey, peerPublicKey, &agreeSpec, agreedKey); in GenAgreeKey()
852 static void ClearAndFreeKeyBlobsIfNeed(struct HksBlob *peerPublicKey, struct HksBlob *agreeSharedSe… in ClearAndFreeKeyBlobsIfNeed() argument
870 if (peerPublicKey->data != NULL) { in ClearAndFreeKeyBlobsIfNeed()
871 (void)memset_s(peerPublicKey->data, peerPublicKey->size, 0, peerPublicKey->size); in ClearAndFreeKeyBlobsIfNeed()
872 HKS_FREE(peerPublicKey->data); in ClearAndFreeKeyBlobsIfNeed()
1103 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in HksCoreAgreeKey() argument
1105 int32_t ret = HksCoreCheckAgreeKeyParams(paramSet, privateKey, peerPublicKey, agreedKey, false); in HksCoreAgreeKey()
1132 ret = HksCryptoHalAgreeKey(&key, peerPublicKey, &agreeSpec, agreedKey); in HksCoreAgreeKey()
1339 struct HksBlob peerPublicKey = { 0, NULL }; in HksCoreImportWrappedKey() local
[all …]
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/passthrough/
Dhuks_hdi_access.c318 const struct HuksBlob *peerPublicKey, struct HuksBlob *agreedKey) in HdiProxyAgreeKey() argument
324 …sHdiProxyInstance->AgreeKey(g_hksHdiProxyInstance, paramSet, privateKey, peerPublicKey, agreedKey); in HdiProxyAgreeKey()
328 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey)) in ENABLE_CFI() argument
331 … HDI_CONVERTER_FUNC_AGREEKEY(paramSet, privateKey, peerPublicKey, agreedKey, ret, HdiProxyAgreeKey) in ENABLE_CFI()
/base/security/huks/interfaces/inner_api/huks_standard/main/include/
Dhuks_hdi.h253 #define HDI_CONVERTER_FUNC_AGREEKEY(paramSet, privateKey, peerPublicKey, agreedKey, ret, func) \ argument
260 HDI_CONVERTER_PARAM_IN_BLOB(peerPublicKey, peerPublicKeyCore) \
264 HDI_ADAPTER_PARAM(peerPublicKey, &peerPublicKeyCore), \
536 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey);
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/
Dhks_service_ipc_serialization.h57 struct HksBlob *peerPublicKey, struct HksBlob *agreedKey);

12