Home
last modified time | relevance | path

Searched refs:wordsCount (Results 1 – 2 of 2) sorted by relevance

/base/security/certificate_framework/frameworks/js/napi/certificate/src/
Dnapi_cert_utils.cpp551 static CfResult ConvertBlobToWords(const CfBlob &blob, uint64_t *&words, uint32_t &wordsCount) in ConvertBlobToWords() argument
567 wordsCount = convertDataSize / blockSize; in ConvertBlobToWords()
579 uint32_t wordsCount = 0; in ConvertBlobToBigIntWords() local
580 CfResult ret = ConvertBlobToWords(blob, words, wordsCount); in ConvertBlobToBigIntWords()
588 napi_create_bigint_words(env, 0, wordsCount, words, &result); in ConvertBlobToBigIntWords()
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_utils.cpp1191 …size_t wordsCount = (blob->len / sizeof(uint64_t)) + ((blob->len % sizeof(uint64_t)) == 0 ? 0 : 1); in ConvertBigIntToNapiValue() local
1192 uint64_t *words = reinterpret_cast<uint64_t *>(HcfMalloc(wordsCount * sizeof(uint64_t), 0)); in ConvertBigIntToNapiValue()
1200 for (size_t i = 0; index < wordsCount; i += sizeof(uint64_t), index++) { in ConvertBigIntToNapiValue()
1210 napi_status status = napi_create_bigint_words(env, 0, wordsCount, words, &bigInt); in ConvertBigIntToNapiValue()