Home
last modified time | relevance | path

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

123

/ohos5.0/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/
H A Dhks_agreement_test.cpp80 struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in AgreeKey() argument
93 ret = HksAgreeKeyRun(agreeParamSetTest, privateKey, peerPublicKey, agreedKey, 1); in AgreeKey()
108 struct HksBlob *peerPublicKey = NULL; variable
115 …ret = GenerateLocalX25519Key(NULL, &peerPublicKey, NULL, &g_testAgreeParams[0].localPublicKeyParam…
127 ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey, peerPublicKey, agreeKey);
142 TestFreeBlob(&peerPublicKey);
157 struct HksBlob *peerPublicKey = NULL; variable
164 …ret = GenerateLocalX25519Key(&privateKey, &peerPublicKey, &g_testAgreeParams[0].localPrivateKeyPar…
187 … ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey2, peerPublicKey, agreeKey2);
201 TestFreeBlob(&peerPublicKey);
/ohos5.0/base/security/huks/test/unittest/huks_lite_test/liteos_m_adapter/
H A Dhks_agreement_test.c82 struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in AgreeKey() argument
95 ret = HksAgreeKeyRun(agreeParamSet, privateKey, peerPublicKey, agreedKey, 1); in AgreeKey()
110 struct HksBlob *peerPublicKey = NULL; in LITE_TEST_CASE() local
117 …ret = GenerateLocalX25519Key(NULL, &peerPublicKey, NULL, &g_testAgreeParams[0].localPublicKeyParam… in LITE_TEST_CASE()
129 ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey, peerPublicKey, agreeKey); in LITE_TEST_CASE()
144 TestFreeBlob(&peerPublicKey); in LITE_TEST_CASE()
160 struct HksBlob *peerPublicKey = NULL; in LITE_TEST_CASE() local
168 …ret = GenerateLocalX25519Key(&privateKey, &peerPublicKey, &g_testAgreeParams[0].localPrivateKeyPar… in LITE_TEST_CASE()
191 … ret = AgreeKey(&g_testAgreeParams[0].agreeParamSetParams, privateKey1, peerPublicKey, agreeKey1); in LITE_TEST_CASE()
207 TestFreeBlob(&peerPublicKey); in LITE_TEST_CASE()
/ohos5.0/foundation/communication/dsoftbus/tests/core/adapter/unittest/
H A Ddsoftbus_rsa_crypto_test.cpp128 PublicKey peerPublicKey = { publicKey, pKeyLen }; variable
130 ret = SoftBusRsaEncrypt(srcData, srcDataLen, &peerPublicKey, &encryptedData, &encryptedDataLen);
154 PublicKey peerPublicKey = { publicKey, pKeyLen }; variable
156 ret = SoftBusRsaEncrypt(nullptr, srcDataLen, &peerPublicKey, &encryptedData, &encryptedDataLen);
160 ret = SoftBusRsaEncrypt(srcData, srcDataLen, &peerPublicKey, nullptr, &encryptedDataLen);
162 ret = SoftBusRsaEncrypt(srcData, srcDataLen, &peerPublicKey, &encryptedData, nullptr);
186 PublicKey peerPublicKey = { publicKey, pKeyLen }; variable
188 ret = SoftBusRsaEncrypt(srcData, inDataLen, &peerPublicKey, &encryptedData, &encryptedDataLen);
213 PublicKey peerPublicKey = { publicKey, pKeyLen }; variable
214 ret = SoftBusRsaEncrypt(srcData, srcDataLen, &peerPublicKey, &encryptedData, &encryptedDataLen);
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/adapter/fuzztest/softbusrsacrypto_fuzzer/
H A Dsoftbusrsacrypto_fuzzer.cpp32 PublicKey peerPublicKey = { data, size }; in SoftBusRsaEncryptFuzzTest() local
34 …if (SoftBusRsaEncrypt(data, size, &peerPublicKey, &encryptedData, &encryptedDataLen) != SOFTBUS_OK… in SoftBusRsaEncryptFuzzTest()
/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core/src/
H A Dhks_core_service_key_generate.c173 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in GenAgreeKey() argument
193 ret = HksCryptoHalAgreeKey(privateKey, peerPublicKey, &agreeSpec, agreedKey); in GenAgreeKey()
602 static void ClearAndFreeKeyBlobsIfNeed(struct HksBlob *peerPublicKey, struct HksBlob *agreeSharedSe… in ClearAndFreeKeyBlobsIfNeed() argument
620 if (peerPublicKey->data != NULL) { in ClearAndFreeKeyBlobsIfNeed()
621 (void)memset_s(peerPublicKey->data, peerPublicKey->size, 0, peerPublicKey->size); in ClearAndFreeKeyBlobsIfNeed()
622 HKS_FREE(peerPublicKey->data); in ClearAndFreeKeyBlobsIfNeed()
799 struct HksBlob peerPublicKey = { 0, NULL }; in HksCoreImportWrappedKey() local
807 ret = GetPublicKeyInnerFormat(wrappingKey, wrappedKeyData, &peerPublicKey, &partOffset); in HksCoreImportWrappedKey()
811 …ret = AgreeSharedSecretWithPeerPublicKey(wrappingKey, &peerPublicKey, unwrapSuite, &agreeSharedSec… in HksCoreImportWrappedKey()
828 ClearAndFreeKeyBlobsIfNeed(&peerPublicKey, &agreeSharedSecret, &originKey, &kek); in HksCoreImportWrappedKey()
H A Dhks_core_interfaces.c144 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in HuksHdiAgreeKey() argument
146 return HksCoreAgreeKey(paramSet, privateKey, peerPublicKey, agreedKey); in HuksHdiAgreeKey()
H A Dhks_core_service_key_operate_one_stage.c334 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in HksCoreAgreeKey() argument
336 int32_t ret = HksCoreCheckAgreeKeyParams(paramSet, privateKey, peerPublicKey, agreedKey, false); in HksCoreAgreeKey()
363 ret = HksCryptoHalAgreeKey(&key, peerPublicKey, &agreeSpec, agreedKey); in HksCoreAgreeKey()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
H A Dhks_ipc_check.c151 const struct HksBlob *peerPublicKey, const struct HksBlob *agreedKey) in HksCheckIpcAgreeKey() argument
153 int32_t ret = HksCheckBlob3AndParamSet(privateKey, peerPublicKey, agreedKey, paramSet); in HksCheckIpcAgreeKey()
156 if ((privateKey->size > MAX_PROCESS_SIZE) || (peerPublicKey->size > MAX_PROCESS_SIZE)) { in HksCheckIpcAgreeKey()
160 …sizeof(peerPublicKey->size) + ALIGN_SIZE(peerPublicKey->size) + sizeof(agreedKey->size) > MAX_PROC… in HksCheckIpcAgreeKey()
/ohos5.0/base/security/huks/interfaces/inner_api/huks_standard/source/
H A Dhks_api_adapter.c70 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in HksAgreeKeyAdapter() argument
73 int32_t ret = GetHksPubKeyInnerFormat(paramSet, peerPublicKey, &publicKey); in HksAgreeKeyAdapter()
H A Dhks_api_adapter.h31 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey);
H A Dhks_api.c379 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in HksAgreeKey() argument
383 …if ((paramSet == NULL) || (privateKey == NULL) || (peerPublicKey == NULL) || (agreedKey == NULL)) { in HksAgreeKey()
390 ret = HksLocalAgreeKey(paramSet, privateKey, peerPublicKey, agreedKey); in HksAgreeKey()
395 ret = HksAgreeKeyAdapter(paramSet, privateKey, peerPublicKey, agreedKey); in HksAgreeKey()
401 (void)peerPublicKey; in HksAgreeKey()
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
H A Dhks_agreement_test.cpp80 struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in AgreeKey() argument
93 ret = HksAgreeKeyRun(agreeParamSetTest, privateKey, peerPublicKey, agreedKey, 1); in AgreeKey()
H A Dhks_test_api_performance.c171 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey, uint32_t performTimes) in HksAgreeKeyRun() argument
184 ret = HksAgreeKeyForDe(paramSet, privateKey, peerPublicKey, agreedKey); in HksAgreeKeyRun()
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/os_dependency/ca/
H A Dhks_ca_access.c84 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey) in HksAccessAgreeKey() argument
86 return HksTeeAgreeKey(paramSet, privateKey, peerPublicKey, agreedKey); in HksAccessAgreeKey()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/core/src/
H A 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()
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/module_test/mock/idl/src/
H A Dhuks_access_mock.c140 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey)) in ENABLE_CFI() argument
142 return HksCoreAgreeKey(paramSet, privateKey, peerPublicKey, agreedKey); in ENABLE_CFI()
/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core/include/
H A Dhks_sm_import_wrap_key.h29 struct HksBlob peerPublicKey; member
H A Dhks_core_service_key_operate_one_stage.h46 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey);
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/passthrough/
H A 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()
/ohos5.0/base/security/huks/interfaces/inner_api/huks_standard/main/include/
H A 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);
/ohos5.0/base/security/huks/test/unittest/huks_lite_test/common/
H A Dhks_test_api_performance.c165 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey, uint32_t performTimes) in HksAgreeKeyRun() argument
177 int32_t ret = HksAgreeKeyForDe(paramSet, privateKey, peerPublicKey, agreedKey); in HksAgreeKeyRun()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/core/include/
H A Dhks_local_engine.h43 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey);
/ohos5.0/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/include/
H A Dhks_ipc_check.h47 const struct HksBlob *peerPublicKey, const struct HksBlob *agreedKey);
/ohos5.0/base/security/huks/test/unittest/huks_common_test/include/
H A Dhks_test_api_performance_h.h44 const struct HksBlob *peerPublicKey, struct HksBlob *agreedKey, uint32_t performTimes);
/ohos5.0/drivers/peripheral/huks/hdi_service/
H A Dhuks_hdi_template.h247 #define HDI_CONVERTER_FUNC_AGREEKEY(paramSet, privateKey, peerPublicKey, agreedKey, ret, func) \ argument
254 HDI_CONVERTER_PARAM_IN_BLOB(peerPublicKey, &peerPublicKeyCore) \
258 HDI_ADAPTER_PARAM(peerPublicKey, &peerPublicKeyCore), \

123