/ohos5.0/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
H A D | hks_session_max_test.cpp | 105 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() 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 = { sizeof(uint64_t), (uint8_t *)&temp }; variable 177 EXPECT_EQ(HksUpdateForDe(&handleBlob, paramSet, &input, &output), HKS_ERROR_NOT_EXIST); 178 EXPECT_EQ(HksFinishForDe(&handleBlob, paramSet, &input, &output), HKS_ERROR_NOT_EXIST); [all …]
|
/ohos5.0/base/security/huks/test/reliability/src/ |
H A D | three_stage_multi_thread.cpp | 230 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()
|
/ohos5.0/base/security/huks/interfaces/kits/napi/src/v8/ |
H A D | huks_napi_common.cpp | 488 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() 574 HksBlob *&handleBlob, HksParamSet *¶mSet) in ParseHandleAndHksParamSet() argument 577 if (argv == nullptr || handleBlob != nullptr || paramSet != nullptr) { in ParseHandleAndHksParamSet() [all …]
|
/ohos5.0/base/security/certificate_manager/test/unittest/src/ |
H A D | cm_finish_test.cpp | 168 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()
|
/ohos5.0/base/security/asset/services/crypto_manager/src/ |
H A D | huks_wrapper.c | 236 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()
|
/ohos5.0/base/security/huks/interfaces/kits/napi/src/v9/ |
H A D | huks_napi_common_item.cpp | 473 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()
|
/ohos5.0/base/security/huks/interfaces/kits/napi/include/v8/ |
H A D | huks_napi_common.h | 68 napi_value GetHandleValue(napi_env env, napi_value object, struct HksBlob *&handleBlob); 108 HksBlob *&handleBlob, HksParamSet *¶mSet);
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | rdb_security_manager.cpp | 141 struct HksBlob handleBlob = { sizeof(uint64_t), handle }; in HksEncryptThreeStage() local 142 int32_t result = HksInit(keyAlias, paramSet, &handleBlob, nullptr); in HksEncryptThreeStage() 147 return HksLoopUpdate(&handleBlob, paramSet, plainText, cipherText); in HksEncryptThreeStage() 154 struct HksBlob handleBlob = { sizeof(uint64_t), handle }; in HksDecryptThreeStage() local 155 int32_t result = HksInit(keyAlias, paramSet, &handleBlob, nullptr); in HksDecryptThreeStage() 160 return HksLoopUpdate(&handleBlob, paramSet, cipherText, plainText); in HksDecryptThreeStage()
|
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
H A D | hks_check_pur_part_test.cpp | 276 struct HksBlob handleBlob = { sizeof(handle), (uint8_t *)&handle }; in CheckPurposeTest() local 277 ret = HksInitForDe(&keyAlias, initParamSet, &handleBlob, nullptr); in CheckPurposeTest()
|
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/core/src/ |
H A D | hks_session_manager.c | 55 struct HksBlob handleBlob = { sizeof(uint64_t), handle }; in DeleteKeyNode() local 63 (void)HuksAccessAbort(&handleBlob, paramSet); in DeleteKeyNode()
|
/ohos5.0/base/security/huks/interfaces/kits/napi/include/v9/ |
H A D | huks_napi_common_item.h | 115 napi_value GetHandleValue(napi_env env, napi_value object, struct HksBlob *&handleBlob);
|
/ohos5.0/docs/zh-cn/application-dev/security/UniversalKeystoreKit/ |
H A D | huks-import-wrapped-key-ndk.md | 256 struct OH_Huks_Blob handleBlob = {sizeof(uint64_t), handle}; 257 OH_Huks_Result ret = OH_Huks_InitSession(key, paramSet, &handleBlob, nullptr); 261 ret = HksEncryptLoopUpdate(&handleBlob, paramSet, plainText, cipherText);
|
/ohos5.0/docs/en/application-dev/security/UniversalKeystoreKit/ |
H A D | huks-import-wrapped-key-ndk.md | 256 struct OH_Huks_Blob handleBlob = {sizeof(uint64_t), handle}; 257 OH_Huks_Result ret = OH_Huks_InitSession(key, paramSet, &handleBlob, nullptr); 261 ret = HksEncryptLoopUpdate(&handleBlob, paramSet, plainText, cipherText);
|
/ohos5.0/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/ |
H A D | huks_adapter.c | 1233 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()
|