/base/update/updater/services/package/pkg_algorithm/ |
D | pkg_algo_deflate.cpp | 27 PkgBuffer &outBuffer, size_t &destOffset) const in DeflateData() argument 37 deflateLen += outBuffer.length - zstream.avail_out; in DeflateData() 39 int32_t ret1 = outStream->Write(outBuffer, deflateLen, destOffset); in DeflateData() 45 zstream.next_out = outBuffer.buffer; in DeflateData() 46 zstream.avail_out = outBuffer.length; in DeflateData() 63 PkgBuffer outBuffer = {}; in Pack() local 65 int32_t ret = InitStream(zstream, true, inBuffer, outBuffer); in Pack() 84 …eflateData(outStream, zstream, ((remainSize == 0) ? Z_FINISH : Z_NO_FLUSH), outBuffer, destOffset); in Pack() 101 PkgBuffer outBuffer = {}; in UnpackCalculate() local 102 int32_t ret = InitStream(zstream, false, inBuffer, outBuffer); in UnpackCalculate() [all …]
|
D | pkg_algo_lz4.cpp | 67 PkgBuffer outBuffer = {LZ4_compressBound(blockSize)}; in Pack() local 68 PKG_CHECK(inBuffer.buffer != nullptr && outBuffer.buffer != nullptr, in Pack() 80 WriteLE32(outBuffer.buffer, LZ4B_MAGIC_NUMBER); in Pack() 81 int32_t ret = outStream->Write(outBuffer, sizeof(LZ4B_MAGIC_NUMBER), destOffset); in Pack() 91 outBuffer.buffer + LZ4B_REVERSED_LEN, readLen, outBuffer.length - LZ4B_REVERSED_LEN); in Pack() 96 WriteLE32(outBuffer.buffer, outSize); in Pack() 97 ret = outStream->Write(outBuffer, outSize + LZ4B_REVERSED_LEN, destOffset); in Pack() 117 PkgBuffer outBuffer(LZ4B_BLOCK_SIZE); in Unpack() local 118 PKG_CHECK(inBuffer.buffer != nullptr && outBuffer.buffer != nullptr, return PKG_NONE_MEMORY, in Unpack() 147 outBuffer.buffer, readLen, LZ4B_BLOCK_SIZE); in Unpack() [all …]
|
D | pkg_algo_deflate.h | 47 int32_t InitStream(z_stream &zstream, bool zip, PkgBuffer &inBuffer, PkgBuffer &outBuffer); 52 z_stream &zstream, int32_t flush, PkgBuffer &outBuffer, size_t &destOffset) const;
|
/base/security/crypto_framework/frameworks/js/napi/crypto/src/ |
D | napi_utils.cpp | 56 napi_value outBuffer = GenerateArrayBuffer(env, blob->data, blob->len); in ConvertArrayToNapiValue() local 57 if (outBuffer == nullptr) { in ConvertArrayToNapiValue() 62 napi_create_typedarray(env, napi_uint8_array, blob->len, outBuffer, 0, &element); in ConvertArrayToNapiValue() 85 napi_value outBuffer = nullptr; in GenerateArrayBuffer() local 87 …v, buffer, size, [](napi_env env, void *data, void *hint) { HcfFree(data); }, nullptr, &outBuffer); in GenerateArrayBuffer() 94 return outBuffer; in GenerateArrayBuffer() 175 napi_value outBuffer = GenerateArrayBuffer(env, encodingBlob->data, encodingBlob->len); in ConvertEncodingBlobToNapiValue() local 176 if (outBuffer == nullptr) { in ConvertEncodingBlobToNapiValue() 181 napi_create_typedarray(env, napi_uint8_array, encodingBlob->len, outBuffer, 0, &outData); in ConvertEncodingBlobToNapiValue() 478 napi_value outBuffer = nullptr; in ConvertBlobToNapiValue() local [all …]
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
D | hks_access_control_secure_sign_test.cpp | 123 struct HksBlob *outBuffer; member 709 updateFinishParams->outBuffer = &g_outDataBlob; in BuildUpdateFinishParams() 744 updateFinishParams->outBuffer = &g_outDataBlob; in BuildUpdateFinishVerifyParams() 867 updateFinishParams->outBuffer); in HksTestUpdateFinishSignAuthInfo() 869 … ret = HksFinish(&handle, newParamSet, updateFinishParams->inData, updateFinishParams->outBuffer); in HksTestUpdateFinishSignAuthInfo() 890 updateFinishParams->outBuffer); in VerifyUpdateFinish() 892 … ret = HksFinish(handle, newParamSet, updateFinishParams->inData, updateFinishParams->outBuffer); in VerifyUpdateFinish() 980 secureSignUpdateFinish->outBuffer->data + g_authHeadSize, in BuildSigAndIndataBlob() 981 secureSignUpdateFinish->outBuffer->size - g_authHeadSize); in BuildSigAndIndataBlob() 986 secureSignUpdateFinish->outBuffer->data, g_authHeadSize); in BuildSigAndIndataBlob() [all …]
|
/base/security/huks/interfaces/kits/napi/src/v8/ |
D | huks_napi_common.cpp | 292 napi_value outBuffer = nullptr; in GenerateAarrayBuffer() local 296 …v, buffer, size, [](napi_env env, void *data, void *hint) { HksFree(data); }, nullptr, &outBuffer); in GenerateAarrayBuffer() 305 return outBuffer; in GenerateAarrayBuffer() 369 napi_value outBuffer = GenerateAarrayBuffer(env, data, size); in GenerateResult() local 370 if (outBuffer != nullptr) { in GenerateResult() 371 … NAPI_CALL(env, napi_create_typedarray(env, napi_uint8_array, size, outBuffer, 0, &outData)); in GenerateResult() 494 napi_value outBuffer = GenerateAarrayBuffer(env, token->data, token->size); in GenerateHksHandle() local 495 if (outBuffer != nullptr) { in GenerateHksHandle() 496 …NAPI_CALL(env, napi_create_typedarray(env, napi_uint8_array, token->size, outBuffer, 0, &tokenjs)); in GenerateHksHandle()
|
/base/security/huks/interfaces/kits/napi/src/v9/ |
D | huks_napi_common_item.cpp | 369 napi_value outBuffer = nullptr; in GenerateAarrayBuffer() local 373 …v, buffer, size, [](napi_env env, void *data, void *hint) { HksFree(data); }, nullptr, &outBuffer); in GenerateAarrayBuffer() 381 return outBuffer; in GenerateAarrayBuffer() 683 napi_value outBuffer = GenerateAarrayBuffer(env, challenge->data, challenge->size); in AddHandleOrChallenge() local 684 if (outBuffer == nullptr) { in AddHandleOrChallenge() 689 …NAPI_CALL(env, napi_create_typedarray(env, napi_uint8_array, challenge->size, outBuffer, 0, &chall… in AddHandleOrChallenge() 705 napi_value outBuffer = GenerateAarrayBuffer(env, outData->data, outData->size); in AddOutDataParamSetOrCertChain() local 706 if (outBuffer == nullptr) { in AddOutDataParamSetOrCertChain() 710 …NAPI_CALL(env, napi_create_typedarray(env, napi_uint8_array, outData->size, outBuffer, 0, &outData… in AddOutDataParamSetOrCertChain()
|
/base/security/certificate_manager/interfaces/kits/napi/src/ |
D | cm_napi_common.cpp | 264 napi_value outBuffer = nullptr; in GenerateAarrayBuffer() local 266 …nv, buffer, size, [](napi_env env, void *data, void *hint) { CmFree(data); }, nullptr, &outBuffer); in GenerateAarrayBuffer() 275 return outBuffer; in GenerateAarrayBuffer()
|
D | cm_napi_sign_verify.cpp | 443 napi_value outBuffer = nullptr; in GenerateArrayBuffer() local 445 …v, tempBuf, size, [](napi_env env, void *data, void *hint) { CmFree(data); }, nullptr, &outBuffer); in GenerateArrayBuffer() 454 return outBuffer; in GenerateArrayBuffer()
|
/base/telephony/sms_mms/frameworks/js/napi/include/ |
D | napi_mms.h | 195 std::unique_ptr<char[]> outBuffer = nullptr; member
|
/base/telephony/sms_mms/frameworks/js/napi/src/ |
D | napi_mms.cpp | 1333 context->outBuffer = mmsMsg.EncodeMsg(context->bufferLen); in NativeEncodeMms() 1348 int32_t element = context->outBuffer[i]; in EncodeMmsCallback()
|