Home
last modified time | relevance | path

Searched refs:decodeLen (Results 1 – 14 of 14) 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 + 1) <= 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/telephony/sms_mms/services/cdma/
Dcdma_sms_message.cpp176 int decodeLen = 0; in PduAnalysis() local
178 decodeLen = in PduAnalysis()
180 if (decodeLen <= 0) { in PduAnalysis()
535 int decodeLen = 0; in DecodeMessage() local
543 return decodeLen; in DecodeMessage()
547 return decodeLen; in DecodeMessage()
554 return decodeLen; in DecodeMessage()
556 decodeLen = dataLen; in DecodeMessage()
563 return decodeLen; in DecodeMessage()
565 decodeLen = dataLen; in DecodeMessage()
[all …]
/base/update/updater/services/package/pkg_package/
Dpkg_zipfile.h147 size_t &decodeLen) override;
152 size_t &decodeLen);
160 size_t &decodeLen);
Dpkg_upgradefile.cpp276 size_t decodeLen = 0; in ReadComponents() local
278 ret = entry->DecodeHeader(headerBuff, parsedLen + srcOffset, dataOffset, decodeLen); in ReadComponents()
286 PkgBuffer signBuffer(buffer.buffer + currLen, decodeLen); in ReadComponents()
287 algorithm->Update(signBuffer, decodeLen); // Generate digest for components in ReadComponents()
289 currLen += decodeLen; in ReadComponents()
290 srcOffset += decodeLen; in ReadComponents()
425 size_t &decodeLen) in DecodeHeader() argument
450 decodeLen = sizeof(UpgradeCompInfo); in DecodeHeader()
Dpkg_zipfile.cpp190 size_t decodeLen = 0; in ParseFileEntries() local
191 ret = entry->DecodeHeader(buffer, currentPos, 0, decodeLen); in ParseFileEntries()
199 currentPos += decodeLen; in ParseFileEntries()
374 size_t &decodeLen) in DecodeCentralDirEntry() argument
403 decodeLen = currLen; in DecodeCentralDirEntry()
461 size_t &decodeLen) in DecodeLocalFileHeader() argument
491 decodeLen = currLen; in DecodeLocalFileHeader()
536 size_t &decodeLen) in DecodeHeader() argument
548 ret = DecodeCentralDirEntry(inStream, centralBuff, startOffset, decodeLen); in DecodeHeader()
Dpkg_lz4file.h48 int32_t DecodeHeader(const PkgBuffer &buffer, size_t, size_t, size_t &decodeLen) override;
Dpkg_gzipfile.h51 int32_t DecodeHeader(const PkgBuffer &buffer, size_t, size_t, size_t &decodeLen) override;
Dpkg_upgradefile.h67 size_t &decodeLen) override;
Dpkg_pkgfile.h42 size_t &decodeLen) = 0;
Dpkg_gzipfile.cpp209 size_t &decodeLen) in DecodeHeader() argument
249 decodeLen = offset; in DecodeHeader()
Dpkg_lz4file.cpp93 size_t &decodeLen) in DecodeHeader() argument
/base/telephony/sms_mms/services/gsm/
Dgsm_sms_message.cpp413 int decodeLen = GsmSmsTpduCodec::DecodeTpdu(tempPdu, sizeof(tempPdu), smsTpdu_.get()); in PduAnalysis() local
414 if (decodeLen <= 0) { in PduAnalysis()
658 int decodeLen = 0; in DecodeMessage() local
666 return decodeLen; in DecodeMessage()
669 return decodeLen; in DecodeMessage()
676 decodeLen = in DecodeMessage()
683 return decodeLen; in DecodeMessage()
685 decodeLen = dataLen; in DecodeMessage()
689 decodeLen = textCvt->ConvertUTF8ToUCS2(decodeData, maxDecodeLen, pMsgText, dataLen); in DecodeMessage()
695decodeLen = textCvt->ConvertGsmUTF8ToAuto(decodeData, maxDecodeLen, pMsgText, dataLen, &encodeType… in DecodeMessage()
[all …]
Dgsm_sms_tpdu_codec.cpp66 int decodeLen = 0; in DecodeTpdu() local
68 return decodeLen; in DecodeTpdu()
74 decodeLen = DecodeDeliver(pTpdu, TpduLen, &(pSmsTpdu->data.deliver)); in DecodeTpdu()
78 decodeLen = DecodeSubmit(pTpdu, TpduLen, &(pSmsTpdu->data.submit)); in DecodeTpdu()
82 decodeLen = DecodeStatusReport(pTpdu, TpduLen, &(pSmsTpdu->data.statusRep)); in DecodeTpdu()
87 return decodeLen; in DecodeTpdu()
/base/update/updater/test/unittest/package/
Dpkg_package_unittest.cpp158 size_t decodeLen = 0; in TestBigZipEntry() local
160 entry->DecodeCentralDirEntry(nullptr, buffer, 0, decodeLen); in TestBigZipEntry()