Home
last modified time | relevance | path

Searched refs:expectedArgc (Results 1 – 21 of 21) sorted by relevance

/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_sign.cpp172 size_t argc = expectedArgc; in BuildSignJsInitCtx()
175 if (argc != expectedArgc && argc != expectedArgc - 1) { in BuildSignJsInitCtx()
222 size_t argc = expectedArgc; in BuildSignJsUpdateCtx()
225 if ((argc != expectedArgc) && (argc != expectedArgc - 1)) { in BuildSignJsUpdateCtx()
265 size_t argc = expectedArgc; in BuildSignJsDoFinalCtx()
268 if ((argc != expectedArgc) && (argc != expectedArgc - 1)) { in BuildSignJsDoFinalCtx()
580 size_t argc = expectedArgc; in JsInitSync()
778 size_t argc = expectedArgc; in CreateJsSign()
782 if (argc != expectedArgc) { in CreateJsSign()
886 if (argc != expectedArgc) { in JsSetSignSpec()
[all …]
H A Dnapi_verify.cpp216 size_t argc = expectedArgc; in BuildVerifyJsInitCtx()
219 if ((argc != expectedArgc) && (argc != expectedArgc - 1)) { in BuildVerifyJsInitCtx()
266 size_t argc = expectedArgc; in BuildVerifyJsUpdateCtx()
269 if ((argc != expectedArgc) && (argc != expectedArgc - 1)) { in BuildVerifyJsUpdateCtx()
364 size_t argc = expectedArgc; in BuildVerifyJsDoFinalCtx()
367 if ((argc != expectedArgc) && (argc != expectedArgc - 1)) { in BuildVerifyJsDoFinalCtx()
900 if (argc != expectedArgc) { in BuildVerifyJsRecoverCtx()
965 if (argc != expectedArgc) { in JsRecoverSync()
1042 size_t argc = expectedArgc; in CreateJsVerify()
1046 if (argc != expectedArgc) { in CreateJsVerify()
[all …]
H A Dnapi_asy_key_generator.cpp164 size_t expectedArgc = PARAMS_NUM_ONE; in BuildGenKeyPairCtx() local
165 size_t argc = expectedArgc; in BuildGenKeyPairCtx()
168 if (argc != expectedArgc && argc != expectedArgc - 1) { in BuildGenKeyPairCtx()
280 size_t argc = expectedArgc; in BuildConvertKeyCtx()
283 if (argc != expectedArgc && argc != expectedArgc - 1) { in BuildConvertKeyCtx()
324 size_t argc = expectedArgc; in BuildConvertPemKeyCtx()
327 if (argc != expectedArgc) { in BuildConvertPemKeyCtx()
856 size_t argc = expectedArgc; in JsConvertPemKeySync()
859 if (argc != expectedArgc) { in JsConvertPemKeySync()
938 size_t argc = expectedArgc; in CreateJsAsyKeyGenerator()
[all …]
H A Dnapi_sm2_crypto_util.cpp111 size_t expectedArgc = PARAMS_NUM_TWO; in JsGenCipherTextBySpec() local
116 if ((argc != expectedArgc) && (argc != (expectedArgc - 1))) { in JsGenCipherTextBySpec()
128 if (argc == expectedArgc) { in JsGenCipherTextBySpec()
239 size_t expectedArgc = PARAMS_NUM_TWO; in JsGetCipherTextSpec() local
244 if ((argc != expectedArgc) && (argc != (expectedArgc - 1))) { in JsGetCipherTextSpec()
256 if (argc == expectedArgc) { in JsGetCipherTextSpec()
H A Dnapi_ecc_key_util.cpp36 size_t expectedArgc = ARGS_SIZE_ONE; in JsGenECCCommonParamsSpec() local
41 if (argc != expectedArgc) { in JsGenECCCommonParamsSpec()
68 size_t expectedArgc = ARGS_SIZE_TWO; in JsConvertPoint() local
73 if (argc != expectedArgc) { in JsConvertPoint()
111 size_t expectedArgc = ARGS_SIZE_THREE; in JsGetEncodedPoint() local
116 if (argc != expectedArgc) { in JsGetEncodedPoint()
H A Dnapi_dh_key_util.cpp35 size_t expectedArgc = PARAMS_NUM_TWO; in JsGenDHCommonParamsSpec() local
40 if ((argc != expectedArgc) && (argc != (expectedArgc - 1))) { in JsGenDHCommonParamsSpec()
54 if (argc == expectedArgc) { in JsGenDHCommonParamsSpec()
H A Dnapi_key_agreement.cpp116 size_t expectedArgc = PARAMS_NUM_THREE; in BuildKeyAgreementJsCtx() local
117 size_t argc = expectedArgc; in BuildKeyAgreementJsCtx()
120 if (argc != expectedArgc && argc != expectedArgc - 1) { in BuildKeyAgreementJsCtx()
121 …g argument num. require %zu or %zu arguments. [Argc]: %zu!", expectedArgc - 1, expectedArgc, argc); in BuildKeyAgreementJsCtx()
124 …ctx->asyncType = isCallback(env, argv[expectedArgc - 1], argc, expectedArgc) ? ASYNC_CALLBACK : AS… in BuildKeyAgreementJsCtx()
161 return GetCallbackFromJSParams(env, argv[expectedArgc - 1], &ctx->callback); in BuildKeyAgreementJsCtx()
371 size_t expectedArgc = PARAMS_NUM_ONE; in CreateJsKeyAgreement() local
375 if (argc != expectedArgc) { in CreateJsKeyAgreement()
H A Dnapi_cipher.cpp160 size_t expectedArgc = ARGS_SIZE_FOUR; in BuildContextForInit() local
164 if (argc != expectedArgc && argc != expectedArgc - 1) { in BuildContextForInit()
219 size_t expectedArgc = ARGS_SIZE_TWO; in BuildContextForUpdate() local
224 if (argc != expectedArgc && argc != expectedArgc - 1) { in BuildContextForUpdate()
266 size_t expectedArgc = ARGS_SIZE_TWO; in BuildContextForFinal() local
270 if (argc != expectedArgc && argc != expectedArgc - 1) { in BuildContextForFinal()
779 size_t expectedArgc = ARGS_SIZE_ONE; in CreateCipher() local
784 if (argc != expectedArgc) { in CreateCipher()
839 size_t expectedArgc = ARGS_SIZE_TWO; in JsSetCipherSpec() local
843 if (argc != expectedArgc) { in JsSetCipherSpec()
[all …]
H A Dnapi_sym_key_generator.cpp84 size_t expectedArgc = ARGS_SIZE_ONE; in BuildContextForGenerateKey() local
88 if (argc != expectedArgc && argc != expectedArgc - 1) { in BuildContextForGenerateKey()
92 …context->asyncType = isCallback(env, argv[expectedArgc - 1], argc, expectedArgc) ? ASYNC_CALLBACK … in BuildContextForGenerateKey()
122 size_t expectedArgc = ARGS_SIZE_TWO; in BuildContextForConvertKey() local
126 if (argc != expectedArgc && argc != expectedArgc - 1) { in BuildContextForConvertKey()
130 …context->asyncType = isCallback(env, argv[expectedArgc - 1], argc, expectedArgc) ? ASYNC_CALLBACK … in BuildContextForConvertKey()
508 size_t expectedArgc = ARGS_SIZE_ONE; in CreateSymKeyGenerator() local
513 if (argc != expectedArgc) { in CreateSymKeyGenerator()
H A Dnapi_pub_key.cpp107 size_t expectedArgc = ARGS_SIZE_ONE; in JsGetEncodedDer() local
111 if (argc != expectedArgc) { in JsGetEncodedDer()
157 size_t expectedArgc = PARAMS_NUM_ONE; in JsGetEncodedPem() local
158 size_t argc = expectedArgc; in JsGetEncodedPem()
162 if (argc != expectedArgc) { in JsGetEncodedPem()
259 size_t expectedArgc = ARGS_SIZE_ONE; in JsGetAsyKeySpec() local
263 if (argc != expectedArgc) { in JsGetAsyKeySpec()
H A Dnapi_asy_key_spec_generator.cpp78 size_t expectedArgc = PARAMS_NUM_ONE; in BuildAsyKeyCtx() local
79 size_t argc = expectedArgc; in BuildAsyKeyCtx()
82 if (argc != expectedArgc && argc != expectedArgc - 1) { in BuildAsyKeyCtx()
83 …g argument num. require %zu or %zu arguments. [Argc]: %zu!", expectedArgc - 1, expectedArgc, argc); in BuildAsyKeyCtx()
86 ctx->asyncType = isCallback(env, argv[0], argc, expectedArgc) ? ASYNC_CALLBACK : ASYNC_PROMISE; in BuildAsyKeyCtx()
105 return GetCallbackFromJSParams(env, argv[expectedArgc - 1], &ctx->callback); in BuildAsyKeyCtx()
601 size_t expectedArgc = PARAMS_NUM_ONE; in CreateJsAsyKeyGeneratorBySpec() local
602 size_t argc = expectedArgc; in CreateJsAsyKeyGeneratorBySpec()
606 if (argc != expectedArgc) { in CreateJsAsyKeyGeneratorBySpec()
H A Dnapi_pri_key.cpp105 size_t expectedArgc = PARAMS_NUM_ONE; in JsGetEncodedPem() local
106 size_t argc = expectedArgc; in JsGetEncodedPem()
110 if (argc != expectedArgc) { in JsGetEncodedPem()
230 size_t expectedArgc = ARGS_SIZE_ONE; in JsGetAsyKeySpec() local
234 if (argc != expectedArgc) { in JsGetAsyKeySpec()
H A Dnapi_md.cpp491 size_t expectedArgc = ARGS_SIZE_ONE; in CreateMd() local
492 size_t argc = expectedArgc; in CreateMd()
495 if (argc != expectedArgc) { in CreateMd()
H A Dnapi_kdf.cpp637 size_t expectedArgc = ARGS_SIZE_ONE; in CreateJsKdf() local
638 size_t argc = expectedArgc; in CreateJsKdf()
641 if (argc != expectedArgc) { in CreateJsKdf()
H A Dnapi_mac.cpp652 size_t expectedArgc = ARGS_SIZE_ONE; in CreateMac() local
653 size_t argc = expectedArgc; in CreateMac()
656 if (argc != expectedArgc) { in CreateMac()
H A Dnapi_utils.cpp1775 bool isCallback(napi_env env, napi_value argv, size_t argc, size_t expectedArgc) in isCallback() argument
1777 if (argc == expectedArgc - 1) { in isCallback()
/ohos5.0/foundation/communication/ipc/ipc/native/src/napi/src/
H A Dnapi_remote_proxy.cpp351 size_t expectedArgc = 2; in NAPI_RemoteProxy_addDeathRecipient() local
356 NAPI_ASSERT(env, argc == expectedArgc, "requires 2 parameter"); in NAPI_RemoteProxy_addDeathRecipient()
400 size_t expectedArgc = 2; in NAPI_RemoteProxy_checkRegisterDeathRecipientArgs() local
402 if (argc != expectedArgc) { in NAPI_RemoteProxy_checkRegisterDeathRecipientArgs()
476 size_t expectedArgc = 2; in NAPI_RemoteProxy_removeDeathRecipient() local
478 NAPI_ASSERT(env, argc == expectedArgc, "requires 2 parameter"); in NAPI_RemoteProxy_removeDeathRecipient()
524 size_t expectedArgc = 2; in NAPI_RemoteProxy_checkUnregisterDeathRecipientArgs() local
525 if (argc != expectedArgc) { in NAPI_RemoteProxy_checkUnregisterDeathRecipientArgs()
H A Dnapi_ipc_skeleton.cpp287 size_t expectedArgc = 1; in NAPI_IPCSkeleton_setCallingIdentity() local
291 NAPI_ASSERT_BASE(env, argc == expectedArgc, "requires 1 parameters", retValue); in NAPI_IPCSkeleton_setCallingIdentity()
427 size_t expectedArgc = 1; in NAPI_IPCSkeleton_restoreCallingIdentity() local
431 if (argc != expectedArgc) { in NAPI_IPCSkeleton_restoreCallingIdentity()
/ohos5.0/foundation/communication/ipc/ipc/native/src/napi_common/source/
H A Dnapi_remote_object.cpp199 size_t expectedArgc = 1; in RemoteObject_JS_Constructor() local
203 NAPI_ASSERT(env, argc >= expectedArgc, "requires at least 1 parameters"); in RemoteObject_JS_Constructor()
930 size_t expectedArgc = 1; in NAPI_RemoteObject_queryLocalInterface() local
934 NAPI_ASSERT(env, argc == expectedArgc, "requires 1 parameters"); in NAPI_RemoteObject_queryLocalInterface()
957 size_t expectedArgc = 1; in NAPI_RemoteObject_getLocalInterface() local
961 if (argc != expectedArgc) { in NAPI_RemoteObject_getLocalInterface()
1351 size_t expectedArgc = 2; in NAPI_RemoteObject_attachLocalInterface() local
1355 NAPI_ASSERT(env, argc == expectedArgc, "requires 2 parameters"); in NAPI_RemoteObject_attachLocalInterface()
1383 size_t expectedArgc = 2; in NAPI_RemoteObject_checkModifyLocalInterfaceArgs() local
1385 if (argc != expectedArgc) { in NAPI_RemoteObject_checkModifyLocalInterfaceArgs()
H A Dnapi_message_sequence_write.cpp1657 size_t expectedArgc = 2; in JS_checkWriteRawDataArgs() local
1658 if (argc != expectedArgc) { in JS_checkWriteRawDataArgs()
/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/inc/
H A Dnapi_utils.h74 bool isCallback(napi_env env, napi_value argv, size_t argc, size_t expectedArgc);