Lines Matching refs:algorithm
16 #include <algorithm>
719 PkgBuffer &buff, std::pair<DigestAlgorithm::DigestAlgorithmPtr, DigestAlgorithm::DigestAlgorithmPtr> &algorithm)
741 algorithm.first->Update(buff, readLen);
744 algorithm.second->Update(buff, readLen);
760 algorithm.first->Update(buff, readLen);
764 algorithm.second->Update(data, SIGN_TOTAL_LEN);
777 DigestAlgorithm::DigestAlgorithmPtr algorithm = PkgAlgorithmFactory::GetDigestAlgorithm(digestMethod);
778 if (algorithm == nullptr) {
782 algorithm->Init();
783 // Get verify algorithm
792 algorithm, algorithmInner);
799 algorithm->Final(result);
904 PkgAlgorithm::PkgAlgorithmPtr algorithm = PkgAlgorithmFactory::GetAlgorithm(info);
905 if (algorithm == nullptr) {
906 PKG_LOGE("DecompressBuffer Can not get algorithm for %s", info->identity.c_str());
917 int32_t ret = algorithm->Unpack(inStream.get(), PkgStreamImpl::ConvertPkgStream(stream), context);
926 algorithm->UpdateFileInfo(info);
936 PkgAlgorithm::PkgAlgorithmPtr algorithm = PkgAlgorithmFactory::GetAlgorithm(info);
937 if (algorithm == nullptr) {
938 PKG_LOGE("CompressBuffer Can not get algorithm for %s", info->identity.c_str());
949 int32_t ret = algorithm->Pack(inStream.get(), PkgStreamImpl::ConvertPkgStream(stream), context);