Home
last modified time | relevance | path

Searched refs:decodeLen (Results 1 – 13 of 13) sorted by relevance

/base/security/huks/frameworks/crypto_lite/cipher/src/
Dcipher_aes.c62 size_t decodeLen = 0; in MallocDecodeData() local
63 …int32_t ret = mbedtls_base64_decode(NULL, 0, &decodeLen, (const unsigned char *)(text), strlen(tex… in MallocDecodeData()
68 if (decodeLen == 0) { in MallocDecodeData()
71 char *decData = (char *)malloc(decodeLen + 1); in MallocDecodeData()
73 CIPHER_LOG_E("malloc failed, length:%d.", (int32_t)(decodeLen + 1)); in MallocDecodeData()
76 (void)memset_s(decData, decodeLen + 1, 0, decodeLen + 1); in MallocDecodeData()
77 if (mbedtls_base64_decode((unsigned char *)decData, decodeLen + 1, olen, in MallocDecodeData()
/base/update/updater/services/package/pkg_package/
Dpkg_zipfile.h147 size_t &decodeLen) override;
151 int32_t DoDecodeCentralDirEntry(PkgBuffer &buffer, size_t &decodeLen,
155 size_t &decodeLen);
165 size_t &decodeLen);
Dpkg_zipfile.cpp261 size_t decodeLen = 0; in ParseFileEntries() local
262 ret = entry->DecodeHeader(buffer, currentPos, 0, decodeLen); in ParseFileEntries()
275 currentPos += decodeLen; in ParseFileEntries()
460 int32_t ZipFileEntry::DoDecodeCentralDirEntry(PkgBuffer &buffer, size_t &decodeLen, in DoDecodeCentralDirEntry() argument
472 decodeLen = currLen; in DoDecodeCentralDirEntry()
511 size_t &decodeLen) in DecodeCentralDirEntry() argument
542 return DoDecodeCentralDirEntry(buffer, decodeLen, currLen, nameSize, extraSize); in DecodeCentralDirEntry()
583 size_t &decodeLen) in DecodeLocalFileHeader() argument
626 decodeLen = currLen; in DecodeLocalFileHeader()
684 size_t &decodeLen) in DecodeHeader() argument
[all …]
Dpkg_lz4file.h48 int32_t DecodeHeader(PkgBuffer &buffer, size_t, size_t, size_t &decodeLen) override;
Dpkg_gzipfile.h52 int32_t DecodeHeader(PkgBuffer &buffer, size_t, size_t, size_t &decodeLen) override;
Dpkg_upgradefile.cpp592 size_t decodeLen = 0; in SaveEntry() local
594 …ze_t ret = entry->DecodeHeader(headerBuff, parsedLen + info.srcOffset, info.dataOffset, decodeLen); in SaveEntry()
605 PkgBuffer signBuffer(buffer.buffer + info.currLen, decodeLen); in SaveEntry()
606 algorithm->Update(signBuffer, decodeLen); // Generate digest for components in SaveEntry()
608 info.currLen += decodeLen; in SaveEntry()
609 info.srcOffset += decodeLen; in SaveEntry()
864 size_t &decodeLen) in DecodeHeader() argument
897 decodeLen = sizeof(UpgradeCompInfo); in DecodeHeader()
Dpkg_upgradefile.h75 size_t &decodeLen) override;
Dpkg_gzipfile.cpp259 size_t &decodeLen) in DecodeHeader() argument
305 decodeLen = offset; in DecodeHeader()
Dpkg_lz4file.cpp110 size_t &decodeLen) in DecodeHeader() argument
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_message.cpp535 int decodeLen = 0; in DecodeMessage() local
542 return decodeLen; in DecodeMessage()
549 return decodeLen; in DecodeMessage()
553 return decodeLen; in DecodeMessage()
555 decodeLen = dataLen; in DecodeMessage()
562 return decodeLen; in DecodeMessage()
564 decodeLen = dataLen; in DecodeMessage()
568decodeLen = TextCoder::Instance().Utf8ToUcs2(decodeData, maxDecodeLen, pMsgText, dataLen); in DecodeMessage()
573decodeLen = TextCoder::Instance().CdmaUtf8ToAuto(decodeData, maxDecodeLen, pMsgText, dataLen, codi… in DecodeMessage()
577 return decodeLen; in DecodeMessage()
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_message.cpp687 int decodeLen = 0; in DecodeMessage() local
694 return decodeLen; in DecodeMessage()
699 decodeLen = TextCoder::Instance().Utf8ToGsm7bit( in DecodeMessage()
706 return decodeLen; in DecodeMessage()
710 return decodeLen; in DecodeMessage()
712 decodeLen = dataLen; in DecodeMessage()
716decodeLen = TextCoder::Instance().Utf8ToUcs2(decodeData, maxDecodeLen, pMsgText, dataLen); in DecodeMessage()
722decodeLen = TextCoder::Instance().GsmUtf8ToAuto(decodeData, maxDecodeLen, pMsgText, dataLen, encod… in DecodeMessage()
727 return decodeLen; in DecodeMessage()
/base/update/updater/test/unittest/package/
Dpkg_package_unittest.cpp155 size_t decodeLen = 0; in TestBigZipEntry() local
157 entry->DecodeCentralDirEntry(nullptr, buffer, 0, decodeLen); in TestBigZipEntry()
/base/update/updater/services/include/package/
Dpkg_manager.h161 size_t &decodeLen) = 0;