Home
last modified time | relevance | path

Searched refs:handleBlob (Results 1 - 11 of 11) sorted by relevance

/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
H A Dhks_session_max_test.cpp105 struct HksBlob handleBlob = { sizeof(uint64_t), (uint8_t *)&handle[i] }; in SessionMaxTest() local
110 EXPECT_EQ(HksInitForDe(alias, paramSet, &handleBlob, &token), HKS_SUCCESS); in SessionMaxTest()
122 struct HksBlob handleBlob = { sizeof(uint64_t), (uint8_t *)&handle[i] }; in SessionMaxTest() local
125 EXPECT_EQ(HksUpdateForDe(&handleBlob, paramSet, &input, &output), HKS_ERROR_NOT_EXIST); in SessionMaxTest()
126 EXPECT_EQ(HksFinishForDe(&handleBlob, paramSet, &input, &output), HKS_ERROR_NOT_EXIST); in SessionMaxTest()
128 EXPECT_EQ(HksUpdateForDe(&handleBlob, paramSet, &input, &output), HKS_SUCCESS) << "i:" << i; in SessionMaxTest()
129 EXPECT_EQ(HksFinishForDe(&handleBlob, paramSet, &input, &output), HKS_SUCCESS) << "i:" << i; in SessionMaxTest()
136 struct HksBlob handleBlob = { sizeof(uint64_t), (uint8_t *)&handle[i] }; in SessionMaxTest() local
139 EXPECT_EQ(HksAbort(&handleBlob, paramSet), HKS_SUCCESS) << "i:" << i; in SessionMaxTest()
175 struct HksBlob handleBlob in HWTEST_F() local
[all...]
/base/security/huks/test/reliability/src/
H A Dthree_stage_multi_thread.cpp230 struct HksBlob handleBlob = { sizeof(uint64_t), handleE }; in ThreeStageTest() local
233 ret = InitSessionTest(alias, &handleBlob); in ThreeStageTest()
242 threads.emplace_back(std::thread(AbortSessionTest, &handleBlob)); in ThreeStageTest()
244 threads.emplace_back(std::thread(UpdateSessionTest, &handleBlob)); in ThreeStageTest()
255 ret = InitSessionTest(alias, &handleBlob); in ThreeStageTest()
256 threads2.emplace_back(std::thread(FinishSessionTest, &handleBlob)); in ThreeStageTest()
257 threads2.emplace_back(std::thread(AbortSessionTest, &handleBlob)); in ThreeStageTest()
/base/security/huks/interfaces/kits/napi/src/v8/
H A Dhuks_napi_common.cpp488 napi_value GetHandleValue(napi_env env, napi_value object, struct HksBlob *&handleBlob) in GetHandleValue() argument
490 if (handleBlob != nullptr) { in GetHandleValue()
511 handleBlob = static_cast<struct HksBlob *>(HksMalloc(sizeof(struct HksBlob))); in GetHandleValue()
512 if (handleBlob == nullptr) { in GetHandleValue()
517 handleBlob->data = static_cast<uint8_t *>(HksMalloc(sizeof(uint64_t))); in GetHandleValue()
518 if (handleBlob->data == nullptr) { in GetHandleValue()
519 HKS_FREE(handleBlob); in GetHandleValue()
523 handleBlob->size = sizeof(uint64_t); in GetHandleValue()
524 if (memcpy_s(handleBlob->data, sizeof(uint64_t), &handle, sizeof(uint64_t)) != EOK) { in GetHandleValue()
525 // the memory of handleBlob fre in GetHandleValue()
573 ParseHandleAndHksParamSet(napi_env env, napi_value *argv, size_t &index, HksBlob *&handleBlob, HksParamSet *&paramSet) ParseHandleAndHksParamSet() argument
[all...]
/base/security/certificate_manager/test/unittest/src/
H A Dcm_finish_test.cpp168 struct CmBlob handleBlob = { sizeof(uint64_t), (uint8_t *)&handle[i] }; in ProducerSessionMaxTest() local
169 ret = CmInit(&g_keyUri, &spec, &handleBlob); in ProducerSessionMaxTest()
176 struct CmBlob handleBlob = { sizeof(uint64_t), (uint8_t *)&handle[i] }; in ProducerSessionMaxTest() local
179 ret = CmUpdate(&handleBlob, &updateInput); in ProducerSessionMaxTest()
185 ret = CmFinish(&handleBlob, &finishInput, &finishOutput); in ProducerSessionMaxTest()
190 struct CmBlob handleBlob = { sizeof(uint64_t), (uint8_t *)&handle[i] }; in ProducerSessionMaxTest() local
191 ret = CmAbort(&handleBlob); in ProducerSessionMaxTest()
/base/security/huks/interfaces/kits/napi/include/v8/
H A Dhuks_napi_common.h68 napi_value GetHandleValue(napi_env env, napi_value object, struct HksBlob *&handleBlob);
108 HksBlob *&handleBlob, HksParamSet *&paramSet);
/base/security/asset/services/crypto_manager/src/
H A Dhuks_wrapper.c236 struct HksBlob handleBlob = { sizeof(uint64_t), handle }; in EncryptData() local
237 ret = HksInit(&keyId->alias, encryptParamSet, &handleBlob, NULL); in EncryptData()
244 ret = HksFinish(&handleBlob, encryptParamSet, inData, outData); in EncryptData()
278 struct HksBlob handleBlob = { sizeof(uint64_t), handle }; in DecryptData() local
279 ret = HksInit(&keyId->alias, decryptParamSet, &handleBlob, NULL); in DecryptData()
286 ret = HksFinish(&handleBlob, decryptParamSet, &cipher, outData); in DecryptData()
/base/security/huks/interfaces/kits/napi/src/v9/
H A Dhuks_napi_common_item.cpp473 napi_value GetHandleValue(napi_env env, napi_value object, struct HksBlob *&handleBlob) in GetHandleValue() argument
475 if (handleBlob != nullptr) { in GetHandleValue()
498 handleBlob = static_cast<struct HksBlob *>(HksMalloc(sizeof(struct HksBlob))); in GetHandleValue()
499 if (handleBlob == nullptr) { in GetHandleValue()
504 handleBlob->data = static_cast<uint8_t *>(HksMalloc(sizeof(uint64_t))); in GetHandleValue()
505 if (handleBlob->data == nullptr) { in GetHandleValue()
506 HKS_FREE(handleBlob); in GetHandleValue()
510 handleBlob->size = sizeof(uint64_t); in GetHandleValue()
512 if (memcpy_s(handleBlob->data, sizeof(uint64_t), &handle, sizeof(uint64_t)) != EOK) { in GetHandleValue()
513 // the memory of handleBlob fre in GetHandleValue()
[all...]
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
H A Dhks_check_pur_part_test.cpp276 struct HksBlob handleBlob = { sizeof(handle), (uint8_t *)&handle }; in CheckPurposeTest() local
277 ret = HksInitForDe(&keyAlias, initParamSet, &handleBlob, nullptr); in CheckPurposeTest()
/base/security/huks/interfaces/kits/napi/include/v9/
H A Dhuks_napi_common_item.h115 napi_value GetHandleValue(napi_env env, napi_value object, struct HksBlob *&handleBlob);
/base/security/huks/services/huks_standard/huks_service/main/core/src/
H A Dhks_session_manager.c55 struct HksBlob handleBlob = { sizeof(uint64_t), handle }; in DeleteKeyNode() local
63 (void)HuksAccessAbort(&handleBlob, paramSet); in DeleteKeyNode()
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/
H A Dhuks_adapter.c1233 struct HksBlob handleBlob = { sizeof(uint64_t), handle }; in AgreeSharedSecretWithStorageP256() local
1239 res = HksInit(&priKeyAliasBlob, initParamSet, &handleBlob, NULL); in AgreeSharedSecretWithStorageP256()
1245 res = HksUpdate(&handleBlob, initParamSet, &pubKeyBlob, &outDataUpdateBlob); in AgreeSharedSecretWithStorageP256()
1252 res = HksFinish(&handleBlob, finishParamSet, &pubKeyBlob, &outDataFinishBlob); in AgreeSharedSecretWithStorageP256()

Completed in 12 milliseconds