/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/ |
D | hks_agreement_test.cpp | 79 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/ |
D | hks_agreement_test.c | 81 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/ |
D | hks_ipc_check.c | 143 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/ |
D | hks_api_adapter.h | 31 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey);
|
D | hks_api_adapter.c | 70 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in HksAgreeKeyAdapter() argument 73 int32_t ret = GetHksPubKeyInnerFormat(paramSet, peerPublicKey, &publicKey); in HksAgreeKeyAdapter()
|
D | hks_api.c | 378 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/ |
D | hks_sm_import_wrap_key.h | 29 struct HksBlob peerPublicKey; member
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
D | hks_agreement_test.cpp | 79 struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in AgreeKey() argument 92 ret = HksAgreeKeyRun(agreeParamSetTest, privateKey, peerPublicKey, agreedKey, 1); in AgreeKey()
|
D | hks_test_api_performance.c | 170 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/ |
D | hks_ca_access.c | 84 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in HksAccessAgreeKey() argument 86 return HksTeeAgreeKey(paramSet, privateKey, peerPublicKey, agreedKey); in HksAccessAgreeKey()
|
D | hks_teec.h | 58 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey);
|
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/include/ |
D | hks_ipc_check.h | 47 const struct HksBlob *peerPublicKey, const struct HksBlob *agreedKey);
|
D | hks_client_ipc_serialization.h | 60 const struct HksBlob *peerPublicKey, const struct HksBlob *agreedKey);
|
D | hks_client_ipc.h | 63 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey);
|
/base/security/huks/frameworks/huks_standard/main/core/include/ |
D | hks_local_engine.h | 43 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey);
|
/base/security/huks/test/unittest/huks_standard_test/module_test/mock/idl/src/ |
D | huks_access_mock.c | 134 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/ |
D | hks_test_api_performance_h.h | 44 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey, uint32_t performTimes);
|
/base/security/huks/frameworks/huks_standard/main/common/include/ |
D | hks_check_paramset.h | 44 const struct HksBlob *peerPublicKey, const struct HksBlob *agreedKey, bool isLocalCheck);
|
/base/security/huks/frameworks/huks_standard/main/core/src/ |
D | hks_local_engine.c | 122 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/ |
D | hks_test_api_performance.c | 164 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/ |
D | hks_core_interfaces.c | 139 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in HuksHdiAgreeKey() argument 141 return HksCoreAgreeKey(paramSet, privateKey, peerPublicKey, agreedKey); in HuksHdiAgreeKey()
|
D | hks_core_service.c | 221 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/ |
D | huks_hdi_access.c | 318 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/ |
D | huks_hdi.h | 253 #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/ |
D | hks_service_ipc_serialization.h | 57 struct HksBlob *peerPublicKey, struct HksBlob *agreedKey);
|