Home
last modified time | relevance | path

Searched refs:paramSetIn (Results 1 – 25 of 53) sorted by relevance

123

/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/hisysevent_wrapper/src/
Dhks_report_wrapper.c207 static void AppendIfExist(uint32_t tag, const struct HksParamSet *paramSetIn, const struct HksBlob … in AppendIfExist() argument
211 int32_t ret = HksGetParam(paramSetIn, tag, &temp); in AppendIfExist()
220 static void AppendKeyAliasBase64IfExist(const struct HksParamSet *paramSetIn, const struct HksBlob … in AppendKeyAliasBase64IfExist() argument
224 int32_t ret = HksGetParam(paramSetIn, HKS_TAG_KEY_ALIAS, &temp); in AppendKeyAliasBase64IfExist()
243 static void GetAlgorithmTag(const struct HksParamSet *paramSetIn, uint32_t *algorithm) in GetAlgorithmTag() argument
246 int32_t ret = HksGetParam(paramSetIn, HKS_TAG_ALGORITHM, &algorithmParam); in GetAlgorithmTag()
254 static void PackExtra(const struct HksParamSet *paramSetIn, char *extraOut) in PackExtra() argument
257 AppendIfExist(HKS_TAG_PURPOSE, paramSetIn, &g_tagPurpose, extraOut, &index); in PackExtra()
258 AppendIfExist(HKS_TAG_KEY_SIZE, paramSetIn, &g_tagKeySize, extraOut, &index); in PackExtra()
259 AppendIfExist(HKS_TAG_DIGEST, paramSetIn, &g_tagDigest, extraOut, &index); in PackExtra()
[all …]
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
Dopenssl_aes_helper.c102 …t32_t AesInit(EVP_CIPHER_CTX **ctx, const EVP_CIPHER **ciper, const struct HksParamSet *paramSetIn) in AesInit() argument
105 HksGetParam(paramSetIn, HKS_TAG_BLOCK_MODE, &mode); in AesInit()
107 HksGetParam(paramSetIn, HKS_TAG_KEY_SIZE, &keyLen); in AesInit()
125 int32_t AesEncrypt(const struct HksParamSet *paramSetIn, const struct HksBlob *inData, struct HksBl… in AesEncrypt() argument
133 HksGetParam(paramSetIn, HKS_TAG_PADDING, &padding); in AesEncrypt()
135 HksGetParam(paramSetIn, HKS_TAG_IV, &iv); in AesEncrypt()
139 if (AesInit(&ctx, &ciper, paramSetIn) != HKS_SUCCESS) { in AesEncrypt()
179 int32_t AesDecrypt(const struct HksParamSet *paramSetIn, const struct HksBlob *inData, struct HksBl… in AesDecrypt() argument
187 HksGetParam(paramSetIn, HKS_TAG_PADDING, &padding); in AesDecrypt()
189 HksGetParam(paramSetIn, HKS_TAG_IV, &iv); in AesDecrypt()
[all …]
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/include/
Dopenssl_aes_helper.h33 int32_t AesEncrypt(const struct HksParamSet *paramSetIn, const struct HksBlob *inData, struct HksBl…
36 int32_t AesDecrypt(const struct HksParamSet *paramSetIn, const struct HksBlob *inData, struct HksBl…
39 int32_t AesGcmEncrypt(const struct HksParamSet *paramSetIn, const struct HksBlob *inData, struct Hk…
42 int32_t AesGcmDecrypt(const struct HksParamSet *paramSetIn, const struct HksBlob *inData, struct Hk…
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_report.c32 const struct HksParamSet *paramSetIn, int32_t errorCode) in HksReport() argument
35 int32_t ret = ReportFaultEvent(funcName, processInfo, paramSetIn, errorCode); in HksReport()
40 (void)paramSetIn; in HksReport()
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/os_dependency_test/src/
Dhks_ipc_check_test.cpp227 struct HksParamSet *paramSetIn = nullptr; variable
228 ret = HksInitParamSet(&paramSetIn);
230 ret = HksBuildParamSet(&paramSetIn);
232 ret = HksCheckIpcGetKeyParamSet(&keyAliasBlob, paramSetIn, paramSet);
235 HksFreeParamSet(&paramSetIn);
254 struct HksParamSet *paramSetIn = nullptr; variable
255 ret = HksInitParamSet(&paramSetIn);
257 ret = HksBuildParamSet(&paramSetIn);
259 ret = HksCheckIpcGetKeyParamSet(&keyAliasBlob, paramSetIn, paramSet);
262 HksFreeParamSet(&paramSetIn);
[all …]
/base/security/certificate_framework/interfaces/innerkits/include/
Dcf_api.h23 int32_t (*get)(const CfObject *object, const CfParamSet *paramSetIn, CfParamSet **paramSetOut);
24 … int32_t (*check)(const CfObject *object, const CfParamSet *paramSetIn, CfParamSet **paramSetOut);
/base/security/huks/interfaces/kits/cj/src/
Dcj_huks_ffi.c59 … const struct HksParamSet *paramSetIn, struct HksParamSet *paramSetOut) in FfiOHOSGetKeyItemProperties() argument
62 return HksGetKeyParamSet(&keyAliasBlob, paramSetIn, paramSetOut); in FfiOHOSGetKeyItemProperties()
94 int32_t FfiOHOSGenerateKey(const char *keyAlias, const struct HksParamSet *paramSetIn, in FfiOHOSGenerateKey() argument
98 return HksGenerateKey(&keyAliasBlob, paramSetIn, paramSetOut); in FfiOHOSGenerateKey()
/base/security/huks/interfaces/kits/napi/src/v8/
Dhuks_napi_generate_key.cpp40 struct HksParamSet *paramSetIn = nullptr; member
59 …onAsyncContext(env, context->asyncWork, context->callback, context->keyAlias, context->paramSetIn); in DeleteGenerateKeyAsyncContext()
80 …lue result = ParseKeyAliasAndHksParamSet(env, argv, index, context->keyAlias, context->paramSetIn); in GenerateKeyParseParams()
117 napiContext->paramSetIn, napiContext->paramSetOut); in GenerateKeyAsyncWork()
Dhuks_napi_get_key_properties.cpp42 struct HksParamSet *paramSetIn = nullptr; member
62 …onAsyncContext(env, context->asyncWork, context->callback, context->keyAlias, context->paramSetIn); in DeleteGetKeyPropertiesAsyncContext()
84 …lue result = ParseKeyAliasAndHksParamSet(env, argv, index, context->keyAlias, context->paramSetIn); in GetKeyPropertiesParseParams()
127 napiContext->paramSetIn, napiContext->paramSetOut); in GetKeyPropertiesAsyncWork()
/base/security/huks/interfaces/kits/c/src/
Dnative_huks_api.c35 const struct OH_Huks_ParamSet *paramSetIn, struct OH_Huks_ParamSet *paramSetOut) in OH_Huks_GenerateKeyItem() argument
38 (const struct HksParamSet *) paramSetIn, (struct HksParamSet *) paramSetOut); in OH_Huks_GenerateKeyItem()
76 const struct OH_Huks_ParamSet *paramSetIn, struct OH_Huks_ParamSet *paramSetOut) in OH_Huks_GetKeyItemParamSet() argument
79 (const struct HksParamSet *) paramSetIn, (struct HksParamSet *) paramSetOut); in OH_Huks_GetKeyItemParamSet()
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/include/
Dhks_ipc_check.h28 int32_t HksCheckIpcGenerateKey(const struct HksBlob *keyAlias, const struct HksParamSet *paramSetIn
41 …2_t HksCheckIpcGetKeyParamSet(const struct HksBlob *keyAlias, const struct HksParamSet *paramSetIn,
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
Dhks_ipc_check.c29 int32_t HksCheckIpcGenerateKey(const struct HksBlob *keyAlias, const struct HksParamSet *paramSetIn) in HksCheckIpcGenerateKey() argument
31 int32_t ret = HksCheckBlobAndParamSet(keyAlias, paramSetIn); in HksCheckIpcGenerateKey()
35 … ((sizeof(keyAlias->size) + ALIGN_SIZE(keyAlias->size) + ALIGN_SIZE(paramSetIn->paramSetSize) + in HksCheckIpcGenerateKey()
109 …2_t HksCheckIpcGetKeyParamSet(const struct HksBlob *keyAlias, const struct HksParamSet *paramSetIn, in HksCheckIpcGetKeyParamSet() argument
112 int32_t ret = HksCheckBlobAndParamSet(keyAlias, paramSetIn); in HksCheckIpcGetKeyParamSet()
122 ALIGN_SIZE(paramSetIn->paramSetSize)) > MAX_PROCESS_SIZE) { in HksCheckIpcGetKeyParamSet()
Dhks_client_service_ipc.c68 static int32_t BuildParamSetNotNull(const struct HksParamSet *paramSetIn, struct HksParamSet **para… in BuildParamSetNotNull() argument
73 if (paramSetIn != NULL) { in BuildParamSetNotNull()
74 ret = HksCheckParamSet(paramSetIn, paramSetIn->paramSetSize); in BuildParamSetNotNull()
84 if (paramSetIn != NULL) { in BuildParamSetNotNull()
85 ret = HksAddParams(tmpParamSet, paramSetIn->params, paramSetIn->paramsCnt); in BuildParamSetNotNull()
99 int32_t HksClientGenerateKey(const struct HksBlob *keyAlias, const struct HksParamSet *paramSetIn, in HksClientGenerateKey() argument
102 int32_t ret = HksCheckIpcGenerateKey(keyAlias, paramSetIn); in HksClientGenerateKey()
107 …inBlob.size = sizeof(keyAlias->size) + ALIGN_SIZE(keyAlias->size) + ALIGN_SIZE(paramSetIn->paramSe… in HksClientGenerateKey()
117 ret = HksGenerateKeyPack(&inBlob, keyAlias, paramSetIn, &outBlob); in HksClientGenerateKey()
120 ret = HksSendRequest(HKS_MSG_GEN_KEY, &inBlob, &outBlob, paramSetIn); in HksClientGenerateKey()
[all …]
Dhks_client_service_passthrough.c58 int32_t HksClientGenerateKey(const struct HksBlob *keyAlias, const struct HksParamSet *paramSetIn, in HksClientGenerateKey() argument
64 …HKS_IF_NOT_SUCC_LOGE_RETURN(GetProcessInfo(paramSetIn, &processName, &userId), HKS_ERROR_INTERNAL_… in HksClientGenerateKey()
74 return HksServiceGenerateKey(&processInfo, keyAlias, paramSetIn, NULL); in HksClientGenerateKey()
149 …t32_t HksClientGetKeyParamSet(const struct HksBlob *keyAlias, const struct HksParamSet *paramSetIn, in HksClientGetKeyParamSet() argument
154 …HKS_IF_NOT_SUCC_LOGE_RETURN(GetProcessInfo(paramSetIn, &processName, &userId), HKS_ERROR_INTERNAL_… in HksClientGetKeyParamSet()
164 return HksServiceGetKeyParamSet(&processInfo, keyAlias, paramSetIn, paramSetOut); in HksClientGetKeyParamSet()
/base/security/huks/interfaces/kits/cj/include/
Dcj_huks_ffi.h38 … const struct HksParamSet *paramSetIn, struct HksParamSet *paramSetOut);
51 int32_t FfiOHOSGenerateKey(const char *keyAlias, const struct HksParamSet *paramSetIn,
/base/security/huks/interfaces/kits/napi/src/v9/
Dhuks_napi_generate_key_item.cpp45 …onAsyncContext(env, context->asyncWork, context->callback, context->keyAlias, context->paramSetIn); in DeleteGenerateKeyAsyncContext()
66 …lue result = ParseKeyAliasAndHksParamSet(env, argv, index, context->keyAlias, context->paramSetIn); in GenerateKeyParseParams()
98 napiContext->paramSetIn, napiContext->paramSetOut); in GenerateKeyAsyncWork()
Dhuks_napi_get_key_item_properties.cpp48 …onAsyncContext(env, context->asyncWork, context->callback, context->keyAlias, context->paramSetIn); in DeleteGetKeyPropertiesAsyncContext()
70 …lue result = ParseKeyAliasAndHksParamSet(env, argv, index, context->keyAlias, context->paramSetIn); in GetKeyPropertiesParseParams()
108 napiContext->paramSetIn, napiContext->paramSetOut); in GetKeyPropertiesAsyncWork()
/base/security/huks/services/huks_standard/huks_service/main/core/include/
Dhks_client_check.h36 const struct HksParamSet *paramSetIn, const struct HksBlob *key);
39 …const struct HksBlob *wrappingKeyAlias, const struct HksParamSet *paramSetIn, const struct HksBlob…
Dhks_report.h27 const struct HksParamSet *paramSetIn, int32_t errorCode);
/base/security/huks/interfaces/kits/c/include/
Dnative_huks_api.h74 const struct OH_Huks_ParamSet *paramSetIn, struct OH_Huks_ParamSet *paramSetOut);
154 const struct OH_Huks_ParamSet *paramSetIn, struct OH_Huks_ParamSet *paramSetOut);
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/hisysevent_wrapper/include/
Dhks_report_wrapper.h27 const struct HksParamSet *paramSetIn, int32_t errorCode);
/base/security/huks/interfaces/inner_api/huks_standard/main/src/
Dhks_api.c106 const struct HksParamSet *paramSetIn, struct HksParamSet *paramSetOut) in HksGenerateKey() argument
111 int32_t ret = HksGetParam(paramSetIn, HKS_TAG_KEY_STORAGE_FLAG, &storageFlag); in HksGenerateKey()
113 if ((paramSetIn == NULL) || (paramSetOut == NULL)) { in HksGenerateKey()
116 ret = HksLocalGenerateKey(paramSetIn, paramSetOut); in HksGenerateKey()
122 if ((paramSetIn == NULL) || (keyAlias == NULL)) { in HksGenerateKey()
125 ret = HksClientGenerateKey(keyAlias, paramSetIn, paramSetOut); in HksGenerateKey()
130 (void)paramSetIn; in HksGenerateKey()
210 const struct HksParamSet *paramSetIn, struct HksParamSet *paramSetOut) in HksGetKeyParamSet() argument
217 int32_t ret = HksClientGetKeyParamSet(keyAlias, paramSetIn, paramSetOut); in HksGetKeyParamSet()
222 (void)paramSetIn; in HksGetKeyParamSet()
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/
Dhks_service_ipc_serialization.h29 struct HksParamSet **paramSetIn, struct HksBlob *keyOut);
43 struct HksParamSet **paramSetIn, struct HksParamSet **paramSetOut);
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/ca/
Dhks_ca_access.c34 int32_t HksAccessGenerateKey(const struct HksBlob *keyBlob, const struct HksParamSet *paramSetIn, in HksAccessGenerateKey() argument
38 return HksTeeGenerateKey(keyBlob, paramSetIn, keyOut); in HksAccessGenerateKey()
/base/security/huks/interfaces/kits/napi/include/v9/
Dhuks_napi_get_key_item_properties.h32 struct HksParamSet *paramSetIn = nullptr; member

123