Home
last modified time | relevance | path

Searched refs:HksNapiThrow (Results 1 – 17 of 17) sorted by relevance

/base/security/huks/interfaces/kits/napi/src/v9/
Dhuks_napi_common_item.cpp39 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "the type of alias isn't string"); in ParseKeyAlias()
47 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "could not get string length"); in ParseKeyAlias()
53 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "the length of alias is too long"); in ParseKeyAlias()
69 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "could not get string"); in ParseKeyAlias()
99 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, in GetUint8Array()
106 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, in GetUint8Array()
166 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, in CheckParamValueType()
248 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "GetHksParam fail"); in ParseParams()
263 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "paramSet is nullptr"); in ParseHksParamSetAndAddParam()
278 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "ParseParams fail"); in ParseHksParamSetAndAddParam()
[all …]
Dhuks_napi_import_wrapped_key_item.cpp72 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "no enough params input"); in ImportWrappedKeyParseParams()
80 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "could not get key alias"); in ImportWrappedKeyParseParams()
Dhuks_napi_attest_key_item.cpp64 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "no enough params input"); in AttestKeyParseParams()
72 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "could not get key alias"); in AttestKeyParseParams()
Dhuks_napi_delete_key_item.cpp59 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "no enough params input"); in DeleteKeyParseParams()
Dhuks_napi_generate_key_item.cpp60 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "no enough params input"); in GenerateKeyParseParams()
Dhuks_napi_has_key_item.cpp59 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "no enough params input"); in IsKeyExistParseParams()
Dhuks_napi_abort_session.cpp57 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "no enough params input"); in ParseAbortParams()
Dhuks_napi_get_key_item_properties.cpp64 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "no enough params input"); in GetKeyPropertiesParseParams()
Dhuks_napi_is_key_item_exist.cpp70 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "no enough params input"); in IsKeyExistParseParams()
Dhuks_napi_import_key_item.cpp62 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "no enough params input"); in ImportKeyParseParams()
Dhuks_napi_export_key_item.cpp63 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "no enough params input"); in ExportKeyParseParams()
Dhuks_napi_init_session.cpp69 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "no enough params input"); in ParseInitParams()
Dhuks_napi_update_finish_session.cpp224 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "no enough params input"); in ParseUpdateParams()
/base/security/huks/interfaces/kits/napi/include/v9/
Dhuks_napi_common_item.h153 inline void HksNapiThrow(napi_env env, int32_t errCode, const char *errorMsg) in HksNapiThrow() function
160 HksNapiThrow(env, HUKS_ERR_CODE_INSUFFICIENT_MEMORY, "Insufficient memory."); in HksNapiThrowInsufficientMemory()
164 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, in HksNapiThrowInvalidParamCount()
169 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "GetUserIdValue failed"); in HksNapiThrowGetUserIdFail()
/base/security/huks/interfaces/kits/napi/src/v12/
Dhuks_napi_list_aliases.cpp83 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "no enough params input"); in ListAliasesParseParams()
91 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "could not get paramset"); in ListAliasesParseParams()
Dhuks_napi_import_wrapped_key_item_as_user.cpp54 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "could not get key alias"); in ImportWrappedKeyAsUserParseParams()
Dhuks_napi_attest_key_item_as_user.cpp53 HksNapiThrow(env, HUKS_ERR_CODE_ILLEGAL_ARGUMENT, "could not get key alias"); in AttestKeyAsUserParseParams()