Home
last modified time | relevance | path

Searched refs:bigInt (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/base/security/crypto_framework/frameworks/key/
H A Decc_key_util.c54 static bool IsBigIntegerValid(const HcfBigInteger *bigInt) in IsBigIntegerValid() argument
56 if (bigInt == NULL) { in IsBigIntegerValid()
60 if (bigInt->data == NULL) { in IsBigIntegerValid()
64 if (bigInt->len == 0) { in IsBigIntegerValid()
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-napi-about-bigint.md189 let bigInt = BigInt(-5555555555555555);
192 JSON.stringify(testNapi.getValueBigintInt64t(bigInt)));
270 // 调用napi_get_value_bigint_words接口获取传入bigInt相关信息,如:signBit传入bigInt正负信息
297 let bigInt = BigInt(-5555555555555555);
300 …ode-API napi_get_value_bigint_words signBit is: %{public}d', testNapi.getValueBigintWords(bigInt));
H A Duse-jsvm-about-bigint.md57 // 调用OH_JSVM_GetValueBigintWords接口获取传入bigInt相关信息,如:signBit传入bigInt正负信息
H A DReadme-CN.md24 - [使用Node-API进行bigInt相关开发](use-napi-about-bigint.md)
/ohos5.0/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/
H A Dvalue_object_test.cpp108 BigInteger bigInt = obj; variable
109 EXPECT_TRUE(bigInt == bigInt1);
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Dabs_shared_result_set.cpp284 ValueObject::BigInt bigInt; in GetCustomerValue() local
285 RawDataParser::ParserRawData(data, size, bigInt); in GetCustomerValue()
286 value = std::move(bigInt); in GetCustomerValue()
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
H A Decc_common_param_spec_generator_openssl.c330 static void FreeHcfBigInteger(HcfBigInteger *bigInt) in FreeHcfBigInteger() argument
332 HcfFree(bigInt->data); in FreeHcfBigInteger()
333 bigInt->data = NULL; in FreeHcfBigInteger()
334 bigInt->len = 0; in FreeHcfBigInteger()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
H A Dhks_openssl_ed25519tox25519.c77 static void FreeBigInt(BIGNUM **bigInt) in FreeBigInt() argument
79 BN_free(*bigInt); in FreeBigInt()
80 *bigInt = NULL; in FreeBigInt()
/ohos5.0/docs/en/application-dev/napi/
H A Duse-napi-about-bigint.md189 let bigInt = BigInt(-5555555555555555);
192 JSON.stringify(testNapi.getValueBigintInt64t(bigInt)));
297 let bigInt = BigInt(-5555555555555555);
300 …ode-API napi_get_value_bigint_words signBit is: %{public}d', testNapi.getValueBigintWords(bigInt));
/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/inc/
H A Dnapi_utils.h83 bool GetBigIntFromNapiValue(napi_env env, napi_value arg, HcfBigInteger *bigInt);
/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_utils.cpp258 bool GetBigIntFromNapiValue(napi_env env, napi_value arg, HcfBigInteger *bigInt) in GetBigIntFromNapiValue() argument
260 if ((env == nullptr) || (arg == nullptr) || (bigInt == nullptr)) { in GetBigIntFromNapiValue()
289 bigInt->data = retArr; in GetBigIntFromNapiValue()
290 bigInt->len = length; in GetBigIntFromNapiValue()
1638 napi_value bigInt = nullptr; in ConvertBigIntToNapiValue() local
1639 napi_status status = napi_create_bigint_words(env, 0, wordsCount, words, &bigInt); in ConvertBigIntToNapiValue()
1647 if (bigInt == nullptr) { in ConvertBigIntToNapiValue()
1654 return bigInt; in ConvertBigIntToNapiValue()
/ohos5.0/docs/zh-cn/application-dev/reference/native-lib/
H A Dnapi.md572 - 当入参正常但bigInt创建失败时,标准库中返回napi_generic_failure,而OpenHarmony中将会抛出异常,并且接口返回napi_pending_exception。
/ohos5.0/docs/zh-cn/application-dev/quick-start/
H A Dintroduction-to-arkts.md100 `number`类型在表示大整数时会造成精度丢失。在开发时可以按需使用`bigInt`类型来确保精度:
/ohos5.0/docs/en/application-dev/reference/native-lib/
H A Dnapi.md570 - If the input parameters are correct but bigInt fails to be created, the native symbol returns **n…
/ohos5.0/docs/zh-cn/application-dev/
H A Dwebsite.md1579 - [使用Node-API进行bigInt相关开发](napi/use-napi-about-bigint.md)