Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 440) sorted by relevance

12345678910>>...18

/base/security/huks/interfaces/kits/napi/src/v9/
Dhuks_napi_import_key_item.cpp47 …ImportKeyAsyncContext context = static_cast<ImportKeyAsyncContext>(HksMalloc(sizeof(ImportKeyAsync… in CreateImportKeyAsyncContext() local
48 if (context != nullptr) { in CreateImportKeyAsyncContext()
49 (void)memset_s(context, sizeof(ImportKeyAsyncContextT), 0, sizeof(ImportKeyAsyncContextT)); in CreateImportKeyAsyncContext()
51 return context; in CreateImportKeyAsyncContext()
54 static void DeleteImportKeyAsyncContext(napi_env env, ImportKeyAsyncContext &context) in DeleteImportKeyAsyncContext() argument
56 if (context == nullptr) { in DeleteImportKeyAsyncContext()
59 …DeleteCommonAsyncContext(env, context->asyncWork, context->callback, context->keyAlias, context->p… in DeleteImportKeyAsyncContext()
60 if (context->key != nullptr) { in DeleteImportKeyAsyncContext()
61 if (context->key->data != nullptr && context->key->size != 0) { in DeleteImportKeyAsyncContext()
62 (void)memset_s(context->key->data, context->key->size, 0, context->key->size); in DeleteImportKeyAsyncContext()
[all …]
Dhuks_napi_import_wrapped_key_item.cpp48 ImportWrappedKeyAsyncContext context = in CreateImportWrappedKeyAsyncContext() local
50 if (context != nullptr) { in CreateImportWrappedKeyAsyncContext()
51 …(void)memset_s(context, sizeof(ImportWrappedKeyAsyncContextT), 0, sizeof(ImportWrappedKeyAsyncCont… in CreateImportWrappedKeyAsyncContext()
53 return context; in CreateImportWrappedKeyAsyncContext()
56 static void DeleteImportWrappedKeyAsyncContext(napi_env env, ImportWrappedKeyAsyncContext &context) in DeleteImportWrappedKeyAsyncContext() argument
58 if (context == nullptr) { in DeleteImportWrappedKeyAsyncContext()
62 …DeleteCommonAsyncContext(env, context->asyncWork, context->callback, context->keyAlias, context->p… in DeleteImportWrappedKeyAsyncContext()
64 if (context->wrappingKeyAlias != nullptr) { in DeleteImportWrappedKeyAsyncContext()
65 FreeHksBlob(context->wrappingKeyAlias); in DeleteImportWrappedKeyAsyncContext()
68 if (context->wrappedData != nullptr) { in DeleteImportWrappedKeyAsyncContext()
[all …]
Dhuks_napi_export_key_item.cpp47 …ExportKeyAsyncContext context = static_cast<ExportKeyAsyncContext>(HksMalloc(sizeof(ExportKeyAsync… in CreateExportKeyAsyncContext() local
48 if (context != nullptr) { in CreateExportKeyAsyncContext()
49 (void)memset_s(context, sizeof(ExportKeyAsyncContextT), 0, sizeof(ExportKeyAsyncContextT)); in CreateExportKeyAsyncContext()
51 return context; in CreateExportKeyAsyncContext()
54 static void DeleteExportKeyAsyncContext(napi_env env, ExportKeyAsyncContext &context) in DeleteExportKeyAsyncContext() argument
56 if (context == nullptr) { in DeleteExportKeyAsyncContext()
59 if (context->key != nullptr) { in DeleteExportKeyAsyncContext()
60 if (context->key->data != nullptr && context->key->size != 0) { in DeleteExportKeyAsyncContext()
61 (void)memset_s(context->key->data, context->key->size, 0, context->key->size); in DeleteExportKeyAsyncContext()
63 FreeHksBlob(context->key); in DeleteExportKeyAsyncContext()
[all …]
Dhuks_napi_init_session.cpp51 InitAsyncCtxPtr context = static_cast<InitAsyncCtxPtr>(HksMalloc(sizeof(InitAsyncContext))); in CreateInitAsyncContext() local
52 if (context != nullptr) { in CreateInitAsyncContext()
53 (void)memset_s(context, sizeof(InitAsyncContext), 0, sizeof(InitAsyncContext)); in CreateInitAsyncContext()
55 return context; in CreateInitAsyncContext()
58 static void DeleteInitAsyncContext(napi_env env, InitAsyncCtxPtr &context) in DeleteInitAsyncContext() argument
60 if (context == nullptr) { in DeleteInitAsyncContext()
64 …DeleteCommonAsyncContext(env, context->asyncWork, context->callback, context->keyAlias, context->p… in DeleteInitAsyncContext()
66 if (context->handle != nullptr) { in DeleteInitAsyncContext()
67 FreeHksBlob(context->handle); in DeleteInitAsyncContext()
70 if (context->token != nullptr) { in DeleteInitAsyncContext()
[all …]
Dhuks_napi_update_finish_session.cpp52 …UpdateAsyncContext context = static_cast<UpdateAsyncContext>(HksMalloc(sizeof(UpdateAsyncContextT)… in CreateUpdateAsyncContext() local
53 if (context != nullptr) { in CreateUpdateAsyncContext()
54 (void)memset_s(context, sizeof(UpdateAsyncContextT), 0, sizeof(UpdateAsyncContextT)); in CreateUpdateAsyncContext()
56 return context; in CreateUpdateAsyncContext()
59 static void DeleteUpdateAsyncContext(napi_env env, UpdateAsyncContext &context) in DeleteUpdateAsyncContext() argument
61 if (context == nullptr) { in DeleteUpdateAsyncContext()
65 …DeleteCommonAsyncContext(env, context->asyncWork, context->callback, context->handle, context->par… in DeleteUpdateAsyncContext()
67 if (context->inData != nullptr) { in DeleteUpdateAsyncContext()
68 if (context->inData->data != nullptr && context->inData->size != 0) { in DeleteUpdateAsyncContext()
69 (void)memset_s(context->inData->data, context->inData->size, 0, context->inData->size); in DeleteUpdateAsyncContext()
[all …]
/base/security/certificate_manager/interfaces/kits/napi/src/
Dcm_napi_get_system_cert_list.cpp48 GetCertListAsyncContext context = in CreateGetCertListAsyncContext() local
50 if (context != nullptr) { in CreateGetCertListAsyncContext()
52 context, sizeof(GetCertListAsyncContextT), 0, sizeof(GetCertListAsyncContextT)); in CreateGetCertListAsyncContext()
54 return context; in CreateGetCertListAsyncContext()
57 static void DeleteGetCertListAsyncContext(napi_env env, GetCertListAsyncContext &context) in DeleteGetCertListAsyncContext() argument
59 if (context == nullptr) { in DeleteGetCertListAsyncContext()
63 DeleteNapiContext(env, context->asyncWork, context->callback); in DeleteGetCertListAsyncContext()
65 if (context->cmContext != nullptr) { in DeleteGetCertListAsyncContext()
66 FreeCmContext(context->cmContext); in DeleteGetCertListAsyncContext()
69 if (context->certificateList != nullptr) { in DeleteGetCertListAsyncContext()
[all …]
Dcm_napi_get_system_cert_info.cpp49 GetCertInfoAsyncContext context = in CreateGetCertInfoAsyncContext() local
51 if (context != nullptr) { in CreateGetCertInfoAsyncContext()
53 context, sizeof(GetCertInfoAsyncContextT), 0, sizeof(GetCertInfoAsyncContextT)); in CreateGetCertInfoAsyncContext()
55 return context; in CreateGetCertInfoAsyncContext()
58 static void DeleteGetCertInfoAsyncContext(napi_env env, GetCertInfoAsyncContext &context) in DeleteGetCertInfoAsyncContext() argument
60 if (context == nullptr) { in DeleteGetCertInfoAsyncContext()
64 DeleteNapiContext(env, context->asyncWork, context->callback); in DeleteGetCertInfoAsyncContext()
66 if (context->cmContext != nullptr) { in DeleteGetCertInfoAsyncContext()
67 FreeCmContext(context->cmContext); in DeleteGetCertInfoAsyncContext()
70 if (context->certUri != nullptr) { in DeleteGetCertInfoAsyncContext()
[all …]
Dcm_napi_set_cert_status.cpp47 SetCertStatusAsyncContext context = in CreateSetCertStatusAsyncContext() local
49 if (context != nullptr) { in CreateSetCertStatusAsyncContext()
51 context, sizeof(SetCertStatusAsyncContextT), 0, sizeof(SetCertStatusAsyncContextT)); in CreateSetCertStatusAsyncContext()
53 return context; in CreateSetCertStatusAsyncContext()
56 static void DeleteSetCertStatusAsyncContext(napi_env env, SetCertStatusAsyncContext &context) in DeleteSetCertStatusAsyncContext() argument
58 if (context == nullptr) { in DeleteSetCertStatusAsyncContext()
62 DeleteNapiContext(env, context->asyncWork, context->callback); in DeleteSetCertStatusAsyncContext()
64 if (context->certUri != nullptr) { in DeleteSetCertStatusAsyncContext()
65 FreeCmBlob(context->certUri); in DeleteSetCertStatusAsyncContext()
68 if (context->cmContext != nullptr) { in DeleteSetCertStatusAsyncContext()
[all …]
Dcm_napi_grant.cpp52 … GrantAsyncContext context = static_cast<GrantAsyncContext>(CmMalloc(sizeof(GrantAsyncContextT))); in InitGrantAsyncContext() local
53 if (context != nullptr) { in InitGrantAsyncContext()
54 (void)memset_s(context, sizeof(GrantAsyncContextT), 0, sizeof(GrantAsyncContextT)); in InitGrantAsyncContext()
56 return context; in InitGrantAsyncContext()
59 static void FreeGrantAsyncContext(napi_env env, GrantAsyncContext &context) in FreeGrantAsyncContext() argument
61 if (context == nullptr) { in FreeGrantAsyncContext()
65 DeleteNapiContext(env, context->asyncWork, context->callback); in FreeGrantAsyncContext()
66 FreeCmBlob(context->keyUri); in FreeGrantAsyncContext()
67 FreeCmBlob(context->authUri); in FreeGrantAsyncContext()
68 if (context->uidList != nullptr) { in FreeGrantAsyncContext()
[all …]
Dcm_napi_user_trusted_cert.cpp50 …UserCertAsyncContext context = static_cast<UserCertAsyncContext>(CmMalloc(sizeof(UserCertAsyncCont… in InitUserCertAsyncContext() local
51 if (context != nullptr) { in InitUserCertAsyncContext()
52 (void)memset_s(context, sizeof(UserCertAsyncContextT), 0, sizeof(UserCertAsyncContextT)); in InitUserCertAsyncContext()
54 return context; in InitUserCertAsyncContext()
57 static void FreeUserCertAsyncContext(napi_env env, UserCertAsyncContext &context) in FreeUserCertAsyncContext() argument
59 if (context == nullptr) { in FreeUserCertAsyncContext()
63 DeleteNapiContext(env, context->asyncWork, context->callback); in FreeUserCertAsyncContext()
64 FreeCmBlob(context->userCert); in FreeUserCertAsyncContext()
65 FreeCmBlob(context->certAlias); in FreeUserCertAsyncContext()
66 FreeCmBlob(context->certUri); in FreeUserCertAsyncContext()
[all …]
Dcm_napi_install_app_cert_common.cpp35 InstallAppCertAsyncContext context = in CreateInstallAppCertAsyncContext() local
37 if (context != nullptr) { in CreateInstallAppCertAsyncContext()
38 …(void)memset_s(context, sizeof(InstallAppCertAsyncContextT), 0, sizeof(InstallAppCertAsyncContextT… in CreateInstallAppCertAsyncContext()
40 return context; in CreateInstallAppCertAsyncContext()
43 void DeleteInstallAppCertAsyncContext(napi_env env, InstallAppCertAsyncContext &context) in DeleteInstallAppCertAsyncContext() argument
45 if (context == nullptr) { in DeleteInstallAppCertAsyncContext()
49 DeleteNapiContext(env, context->asyncWork, context->callback); in DeleteInstallAppCertAsyncContext()
51 if (context->keystore != nullptr) { in DeleteInstallAppCertAsyncContext()
52 FreeCmBlob(context->keystore); in DeleteInstallAppCertAsyncContext()
55 if (context->keystorePwd != nullptr) { in DeleteInstallAppCertAsyncContext()
[all …]
Dcm_napi_sign_verify.cpp57 …SignVerifyAsyncContext context = static_cast<SignVerifyAsyncContext>(CmMalloc(sizeof(SignVerifyAsy… in InitSignVerifyAsyncContext() local
58 if (context != nullptr) { in InitSignVerifyAsyncContext()
59 … (void)memset_s(context, sizeof(SignVerifyAsyncContextT), 0, sizeof(SignVerifyAsyncContextT)); in InitSignVerifyAsyncContext()
61 return context; in InitSignVerifyAsyncContext()
64 static void FreeSignVerifyAsyncContext(napi_env env, SignVerifyAsyncContext &context) in FreeSignVerifyAsyncContext() argument
66 if (context == nullptr) { in FreeSignVerifyAsyncContext()
70 DeleteNapiContext(env, context->asyncWork, context->callback); in FreeSignVerifyAsyncContext()
71 FreeCmBlob(context->authUri); in FreeSignVerifyAsyncContext()
72 FreeCmBlob(context->handle); in FreeSignVerifyAsyncContext()
73 FreeCmBlob(context->inData); in FreeSignVerifyAsyncContext()
[all …]
Dcm_napi_get_app_cert_info_common.cpp35 GetAppCertInfoAsyncContext context = in CreateGetAppCertInfoAsyncContext() local
37 if (context != nullptr) { in CreateGetAppCertInfoAsyncContext()
38 …(void)memset_s(context, sizeof(GetAppCertInfoAsyncContextT), 0, sizeof(GetAppCertInfoAsyncContextT… in CreateGetAppCertInfoAsyncContext()
40 return context; in CreateGetAppCertInfoAsyncContext()
43 void DeleteGetAppCertInfoAsyncContext(napi_env env, GetAppCertInfoAsyncContext &context) in DeleteGetAppCertInfoAsyncContext() argument
45 if (context == nullptr) { in DeleteGetAppCertInfoAsyncContext()
49 DeleteNapiContext(env, context->asyncWork, context->callback); in DeleteGetAppCertInfoAsyncContext()
51 if (context->keyUri != nullptr) { in DeleteGetAppCertInfoAsyncContext()
52 FreeCmBlob(context->keyUri); in DeleteGetAppCertInfoAsyncContext()
55 if (context->credential != nullptr) { in DeleteGetAppCertInfoAsyncContext()
[all …]
Dcm_napi_get_app_cert_list_common.cpp35 GetAppCertListAsyncContext context = in CreateGetAppCertListAsyncContext() local
37 if (context != nullptr) { in CreateGetAppCertListAsyncContext()
38 …(void)memset_s(context, sizeof(GetAppCertListAsyncContextT), 0, sizeof(GetAppCertListAsyncContextT… in CreateGetAppCertListAsyncContext()
40 return context; in CreateGetAppCertListAsyncContext()
43 void DeleteGetAppCertListAsyncContext(napi_env env, GetAppCertListAsyncContext &context) in DeleteGetAppCertListAsyncContext() argument
45 if (context == nullptr) { in DeleteGetAppCertListAsyncContext()
49 DeleteNapiContext(env, context->asyncWork, context->callback); in DeleteGetAppCertListAsyncContext()
51 if (context->credentialList != nullptr) { in DeleteGetAppCertListAsyncContext()
52 FreeCredentialList(context->credentialList); in DeleteGetAppCertListAsyncContext()
55 CmFree(context); in DeleteGetAppCertListAsyncContext()
[all …]
Dcm_napi_uninstall_app_cert_common.cpp35 UninstallAppCertAsyncContext context = in CreateUninstallAppCertAsyncContext() local
37 if (context != nullptr) { in CreateUninstallAppCertAsyncContext()
39context, sizeof(UninstallAppCertAsyncContextT), 0, sizeof(UninstallAppCertAsyncContextT)); in CreateUninstallAppCertAsyncContext()
41 return context; in CreateUninstallAppCertAsyncContext()
44 void DeleteUninstallAppCertAsyncContext(napi_env env, UninstallAppCertAsyncContext &context) in DeleteUninstallAppCertAsyncContext() argument
46 if (context == nullptr) { in DeleteUninstallAppCertAsyncContext()
50 DeleteNapiContext(env, context->asyncWork, context->callback); in DeleteUninstallAppCertAsyncContext()
52 if (context->keyUri != nullptr) { in DeleteUninstallAppCertAsyncContext()
53 FreeCmBlob(context->keyUri); in DeleteUninstallAppCertAsyncContext()
56 CmFree(context); in DeleteUninstallAppCertAsyncContext()
[all …]
/base/security/huks/interfaces/kits/napi/src/v8/
Dhuks_napi_export_key.cpp47 … ExportKeyAsyncContext context = (ExportKeyAsyncContext)HksMalloc(sizeof(ExportKeyAsyncContextT)); in CreateExportKeyAsyncContext() local
48 if (context != nullptr) { in CreateExportKeyAsyncContext()
49 (void)memset_s(context, sizeof(ExportKeyAsyncContextT), 0, sizeof(ExportKeyAsyncContextT)); in CreateExportKeyAsyncContext()
51 return context; in CreateExportKeyAsyncContext()
54 static void DeleteExportKeyAsyncContext(napi_env env, ExportKeyAsyncContext &context) in DeleteExportKeyAsyncContext() argument
56 if (context == nullptr) { in DeleteExportKeyAsyncContext()
59 if (context->key != nullptr) { in DeleteExportKeyAsyncContext()
60 if (context->key->data != nullptr && context->key->size != 0) { in DeleteExportKeyAsyncContext()
61 (void)memset_s(context->key->data, context->key->size, 0, context->key->size); in DeleteExportKeyAsyncContext()
63 FreeHksBlob(context->key); in DeleteExportKeyAsyncContext()
[all …]
Dhuks_napi_init.cpp51 InitAsyncCtxPtr context = (InitAsyncCtxPtr)HksMalloc(sizeof(InitAsyncContext)); in CreateInitAsyncContext() local
52 if (context != nullptr) { in CreateInitAsyncContext()
53 (void)memset_s(context, sizeof(InitAsyncContext), 0, sizeof(InitAsyncContext)); in CreateInitAsyncContext()
55 return context; in CreateInitAsyncContext()
58 static void DeleteInitAsyncContext(napi_env env, InitAsyncCtxPtr &context) in DeleteInitAsyncContext() argument
60 if (context == nullptr) { in DeleteInitAsyncContext()
64 …DeleteCommonAsyncContext(env, context->asyncWork, context->callback, context->keyAlias, context->p… in DeleteInitAsyncContext()
66 if (context->handle != nullptr) { in DeleteInitAsyncContext()
67 FreeHksBlob(context->handle); in DeleteInitAsyncContext()
70 if (context->token != nullptr) { in DeleteInitAsyncContext()
[all …]
Dhuks_napi_import_key.cpp47 … ImportKeyAsyncContext context = (ImportKeyAsyncContext)HksMalloc(sizeof(ImportKeyAsyncContextT)); in CreateImportKeyAsyncContext() local
48 if (context != nullptr) { in CreateImportKeyAsyncContext()
49 (void)memset_s(context, sizeof(ImportKeyAsyncContextT), 0, sizeof(ImportKeyAsyncContextT)); in CreateImportKeyAsyncContext()
51 return context; in CreateImportKeyAsyncContext()
54 static void DeleteImportKeyAsyncContext(napi_env env, ImportKeyAsyncContext &context) in DeleteImportKeyAsyncContext() argument
56 if (context == nullptr) { in DeleteImportKeyAsyncContext()
59 …DeleteCommonAsyncContext(env, context->asyncWork, context->callback, context->keyAlias, context->p… in DeleteImportKeyAsyncContext()
60 if (context->key != nullptr) { in DeleteImportKeyAsyncContext()
61 if (context->key->data != nullptr && context->key->size != 0) { in DeleteImportKeyAsyncContext()
62 (void)memset_s(context->key->data, context->key->size, 0, context->key->size); in DeleteImportKeyAsyncContext()
[all …]
Dhuks_napi_update_finish.cpp52 UpdateAsyncContext context = (UpdateAsyncContext)HksMalloc(sizeof(UpdateAsyncContextT)); in CreateUpdateAsyncContext() local
53 if (context != nullptr) { in CreateUpdateAsyncContext()
54 (void)memset_s(context, sizeof(UpdateAsyncContextT), 0, sizeof(UpdateAsyncContextT)); in CreateUpdateAsyncContext()
56 return context; in CreateUpdateAsyncContext()
59 static void DeleteUpdateAsyncContext(napi_env env, UpdateAsyncContext &context) in DeleteUpdateAsyncContext() argument
61 if (context == nullptr) { in DeleteUpdateAsyncContext()
65 …DeleteCommonAsyncContext(env, context->asyncWork, context->callback, context->handle, context->par… in DeleteUpdateAsyncContext()
67 if (context->inData != nullptr) { in DeleteUpdateAsyncContext()
68 if (context->inData->data != nullptr && context->inData->size != 0) { in DeleteUpdateAsyncContext()
69 (void)memset_s(context->inData->data, context->inData->size, 0, context->inData->size); in DeleteUpdateAsyncContext()
[all …]
/base/location/frameworks/native/source/
Dlocator_callback_host.cpp104 auto context = static_cast<LocationAsyncContext*>(work->data); in DoSendWork() local
105 if (context == nullptr || context->env == nullptr) { in DoSendWork()
110 NAPI_CALL_RETURN_VOID(context->env, napi_open_handle_scope(context->env, &scope)); in DoSendWork()
111 if (scope == nullptr || context->loc == nullptr) { in DoSendWork()
112 delete context; in DoSendWork()
117 CHK_NAPI_ERR_CLOSE_SCOPE(context->env, napi_create_object(context->env, &jsEvent), in DoSendWork()
118 scope, context, work); in DoSendWork()
119 if (context->callback[1]) { in DoSendWork()
120 SystemLocationToJs(context->env, context->loc, jsEvent); in DoSendWork()
122 LocationToJs(context->env, context->loc, jsEvent); in DoSendWork()
[all …]
Dgnss_status_callback_host.cpp85 GnssStatusAsyncContext *context = new (std::nothrow) GnssStatusAsyncContext(env_); in Send() local
86 if (context == nullptr) { in Send()
90 context->env = env_; in Send()
91 context->callback[SUCCESS_CALLBACK] = handlerCb_; in Send()
92 context->statusInfo = std::move(statusInfo); in Send()
93 work->data = context; in Send()
105 GnssStatusAsyncContext *context = nullptr; in UvQueueWork() local
111 context = static_cast<GnssStatusAsyncContext *>(work->data); in UvQueueWork()
112 if (context == nullptr || context->env == nullptr) { in UvQueueWork()
117 NAPI_CALL_RETURN_VOID(context->env, napi_open_handle_scope(context->env, &scope)); in UvQueueWork()
[all …]
/base/update/updater/test/unittest/updater_binary/
Dupdate_image_patch_unittest.cpp38 UScriptInstructionContext context {}; in TestImgPatch01() local
40 EXPECT_EQ(instruction->Execute(env, context), USCRIPT_INVALID_PARAM); in TestImgPatch01()
41 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestImgPatch01()
49 UScriptInstructionContext context {}; in TestImgPatch02() local
50 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestImgPatch02()
51 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestImgPatch02()
52 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestImgPatch02()
53 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestImgPatch02()
54 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestImgPatch02()
55 context.AddInputParam(std::make_shared<StringValue>("/data/updater/patchfile")); in TestImgPatch02()
[all …]
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/
Dhks_ipc_service.h25 void HksIpcServiceGenerateKey(const struct HksBlob *srcData, const uint8_t *context);
27 void HksIpcServiceImportKey(const struct HksBlob *srcData, const uint8_t *context);
29 void HksIpcServiceExportPublicKey(const struct HksBlob *srcData, const uint8_t *context);
31 void HksIpcServiceImportWrappedKey(const struct HksBlob *srcData, const uint8_t *context);
33 void HksIpcServiceDeleteKey(const struct HksBlob *srcData, const uint8_t *context);
35 void HksIpcServiceGetKeyParamSet(const struct HksBlob *srcData, const uint8_t *context);
37 void HksIpcServiceKeyExist(const struct HksBlob *srcData, const uint8_t *context);
39 void HksIpcServiceGenerateRandom(const struct HksBlob *srcData, const uint8_t *context);
41 void HksIpcServiceSign(const struct HksBlob *srcData, const uint8_t *context);
43 void HksIpcServiceVerify(const struct HksBlob *srcData, const uint8_t *context);
[all …]
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_mac.cpp49 static void FreeCryptoFwkCtx(napi_env env, MacCtx *context) in FreeCryptoFwkCtx() argument
51 if (context == nullptr) { in FreeCryptoFwkCtx()
54 if (context->asyncWork != nullptr) { in FreeCryptoFwkCtx()
55 napi_delete_async_work(env, context->asyncWork); in FreeCryptoFwkCtx()
56 context->asyncWork = nullptr; in FreeCryptoFwkCtx()
58 if (context->callback != nullptr) { in FreeCryptoFwkCtx()
59 napi_delete_reference(env, context->callback); in FreeCryptoFwkCtx()
60 context->callback = nullptr; in FreeCryptoFwkCtx()
62 context->symKey = nullptr; in FreeCryptoFwkCtx()
63 if (context->inBlob != nullptr) { in FreeCryptoFwkCtx()
[all …]
Dnapi_md.cpp48 static void FreeCryptoFwkCtx(napi_env env, MdCtx *context) in FreeCryptoFwkCtx() argument
50 if (context == nullptr) { in FreeCryptoFwkCtx()
53 if (context->asyncWork != nullptr) { in FreeCryptoFwkCtx()
54 napi_delete_async_work(env, context->asyncWork); in FreeCryptoFwkCtx()
55 context->asyncWork = nullptr; in FreeCryptoFwkCtx()
57 if (context->callback != nullptr) { in FreeCryptoFwkCtx()
58 napi_delete_reference(env, context->callback); in FreeCryptoFwkCtx()
59 context->callback = nullptr; in FreeCryptoFwkCtx()
61 if (context->inBlob != nullptr) { in FreeCryptoFwkCtx()
62 HcfFree(context->inBlob->data); in FreeCryptoFwkCtx()
[all …]

12345678910>>...18