/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/hisysevent_wrapper/src/ |
D | hks_report_wrapper.c | 207 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/ |
D | openssl_aes_helper.c | 102 …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/ |
D | openssl_aes_helper.h | 33 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/ |
D | hks_report.c | 32 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/ |
D | hks_ipc_check_test.cpp | 227 struct HksParamSet *paramSetIn = nullptr; variable 228 ret = HksInitParamSet(¶mSetIn); 230 ret = HksBuildParamSet(¶mSetIn); 232 ret = HksCheckIpcGetKeyParamSet(&keyAliasBlob, paramSetIn, paramSet); 235 HksFreeParamSet(¶mSetIn); 254 struct HksParamSet *paramSetIn = nullptr; variable 255 ret = HksInitParamSet(¶mSetIn); 257 ret = HksBuildParamSet(¶mSetIn); 259 ret = HksCheckIpcGetKeyParamSet(&keyAliasBlob, paramSetIn, paramSet); 262 HksFreeParamSet(¶mSetIn); [all …]
|
/base/security/certificate_framework/interfaces/innerkits/include/ |
D | cf_api.h | 23 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/ |
D | cj_huks_ffi.c | 59 … 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/ |
D | huks_napi_generate_key.cpp | 40 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()
|
D | huks_napi_get_key_properties.cpp | 42 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/ |
D | native_huks_api.c | 35 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/ |
D | hks_ipc_check.h | 28 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/ |
D | hks_ipc_check.c | 29 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()
|
D | hks_client_service_ipc.c | 68 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 …]
|
D | hks_client_service_passthrough.c | 58 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/ |
D | cj_huks_ffi.h | 38 … 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/ |
D | huks_napi_generate_key_item.cpp | 45 …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()
|
D | huks_napi_get_key_item_properties.cpp | 48 …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/ |
D | hks_client_check.h | 36 const struct HksParamSet *paramSetIn, const struct HksBlob *key); 39 …const struct HksBlob *wrappingKeyAlias, const struct HksParamSet *paramSetIn, const struct HksBlob…
|
D | hks_report.h | 27 const struct HksParamSet *paramSetIn, int32_t errorCode);
|
/base/security/huks/interfaces/kits/c/include/ |
D | native_huks_api.h | 74 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/ |
D | hks_report_wrapper.h | 27 const struct HksParamSet *paramSetIn, int32_t errorCode);
|
/base/security/huks/interfaces/inner_api/huks_standard/main/src/ |
D | hks_api.c | 106 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/ |
D | hks_service_ipc_serialization.h | 29 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/ |
D | hks_ca_access.c | 34 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/ |
D | huks_napi_get_key_item_properties.h | 32 struct HksParamSet *paramSetIn = nullptr; member
|