# Third-Party Notices SunPack's independent original code, including original Worker application code, is licensed under MIT. Third-party code and modifications to it are distributed under the applicable upstream terms. `tools/sunpack_sevenzip_worker.exe` includes and uses the modified 7-Zip backend. `sunpack-runtime.exe` independently includes and uses the 7-Zip Deflate64 decoder. The LGPL-covered 7-Zip code and its use in these executables are licensed under GNU LGPL 2.1 or later. File-specific third-party terms remain applicable, including the unRAR restrictions for the Worker. The installer displays and installs `THIRD_PARTY_LICENSES.txt` with this overview, the license texts, and the corresponding source location for the official build. Paths below refer to files in the source repository. See [Licensing and distribution](docs/licensing.md) for the rebuild instructions. ## SunPack GUI The standalone GUI statically links [Core UI](https://github.com/ghboke/core-ui) at commit `126330eefdefe724ec96eb543681f715bd6be252` (MIT), [nlohmann/json](https://github.com/nlohmann/json) at commit `65ee68451d8eb2b5f3a30b410476ab83deb3289b` (MIT), and Core UI's QuickJS-NG, LunaSVG and PlutoVG dependencies. Their full license texts are staged by the GUI build and consolidated into `THIRD_PARTY_LICENSES.txt` in release packages, together with the bundled FreeType and stb notices. The GUI also reuses the repository's bundled xxHash implementation and its BSD notice. ## Inno Setup installer messages The Windows installer uses [Inno Setup](https://jrsoftware.org/isinfo.php). SunPack includes the Simplified and Traditional Chinese compiler message files in [installer/Languages](installer/Languages/). The Traditional Chinese file is imported from Inno Setup at commit [c34976f](https://github.com/jrsoftware/issrc/blob/c34976f7d107e94d4fce8ac29f72ca33762293d7/Files/Languages/ChineseTraditional.isl) with its original translator credits. See [licenses/inno-setup-license.txt](licenses/inno-setup-license.txt) for the terms. ## 7-Zip source code SunPack vendors a trimmed and modified 7-Zip 26.05 runtime subset at the historical directory name: `sunpack/sevenzip_bridge/7z2604-src/` The 26.05 update imports the Shrink decoder rewrite, container-handler initialization fixes and string-copy cleanup while preserving SunPack's codec, memory and CPU-budget patches. Changes outside supported runtime paths are omitted. The vendored tree also retains unchanged files from earlier releases. Upstream sources are available from the [7-Zip 26.05 release](https://github.com/ip7z/7zip/releases/tag/26.05). That subtree is not covered by SunPack's MIT License. It remains under the upstream 7-Zip source license. The authoritative license file imported with the source is: `sunpack/sevenzip_bridge/7z2604-src/DOC/License.txt` A convenience copy is distributed at [licenses/7zip-source-license.txt](licenses/7zip-source-license.txt). 7-Zip Copyright (C) 1999-2026 Igor Pavlov and other respective copyright holders. The upstream 7-Zip source license identifies the following file-specific terms: - `CPP/7zip/Compress/Rar*`: GNU LGPL plus the unRAR license restriction. - `CPP/7zip/Compress/LzfseDecoder.cpp`: BSD 3-Clause. - `C/ZstdDec.c`: BSD 3-Clause. - `C/Xxh64.c`: BSD 2-Clause. - Files explicitly marked public domain retain that status. - Other 7-Zip source files are licensed under GNU LGPL version 2.1 or later. The complete GNU LGPL 2.1 text is included at [licenses/LGPL-2.1.txt](licenses/LGPL-2.1.txt). The unRAR-restricted source code may not be used to recreate the proprietary RAR compression algorithm. The exact restriction and redistribution terms are reproduced in the 7-Zip source license file referenced above. ## zlib-ng 2.3.3 SunPack vendors the runtime build subset of zlib-ng 2.3.3 at: `sunpack/sevenzip_bridge/zlib-ng-2.3.3/` The imported files are pinned to upstream commit `12731092979c6d07f42da27da673a9f6c7b13586` and are used for selected ZIP Deflate decoding paths. They remain under the upstream zlib license. A copy is distributed at [licenses/zlib-ng-license.txt](licenses/zlib-ng-license.txt). zlib-ng source and releases are available from [github.com/zlib-ng/zlib-ng](https://github.com/zlib-ng/zlib-ng/). ## 7-Zip development assets The development setup prepares the 7-Zip fixture tools `7z.exe`, `7z.dll`, and `7zCon.sfx`. Those components remain subject to the 7-Zip binary distribution terms reproduced in [licenses/7zip-license.txt](licenses/7zip-license.txt). 7-Zip source code and official releases are available from [7-zip.org](https://www.7-zip.org/). ## LZ4 1.10.0 and xxHash SunPack vendors the unmodified LZ4 1.10.0 library sources and bundled xxHash at `sunpack/third_party/lz4/`. They are compiled into the Rust extension and the archive worker for LZ4 Frame decoding. The library remains under the BSD 2-Clause license. The full notice is distributed at [licenses/lz4-license.txt](licenses/lz4-license.txt). Source: https://github.com/lz4/lz4/tree/v1.10.0/lib ## RustCrypto Twofish The Twofish-256 key schedule and q permutations in `sunpack/sunpack_enc/src/twofish.rs` are adapted from RustCrypto twofish 0.7.1 by Alexander Krotov (2017), under the MIT license. SunPack expands the keyed S-box/MDS tables during key setup and shares them across CTR tasks. The full notice is distributed at [licenses/twofish-license.txt](licenses/twofish-license.txt). Source: https://github.com/RustCrypto/block-ciphers/tree/twofish-v0.7.1/twofish ## RustCrypto Serpent The Serpent-256 key schedule and Boolean S-box circuits in `sunpack/sunpack_enc/src/serpent.rs` are adapted from RustCrypto serpent 0.6.0, Copyright (c) 2019-2024 The RustCrypto Project Developers and Copyright (c) 2019 Jonathan Serra, under the MIT license. SunPack uses the same circuits for scalar blocks and eight-block AVX2 encryption, sharing one expanded key across CTR tasks. The full notice is distributed at [licenses/serpent-license.txt](licenses/serpent-license.txt). Source: https://github.com/RustCrypto/block-ciphers/tree/serpent-v0.6.0/serpent ## RustCrypto Threefish The Threefish-1024 key schedule and round constants in `sunpack/sunpack_enc/src/threefish.rs` are adapted from RustCrypto threefish 0.5.2, Copyright (c) 2016-2017 Christian Barcenas, Artyom Pavlov, under the MIT license. SunPack uses a zero tweak, constant-rotation round cycles, and four-block AVX2 encryption with scalar tails. The full notice is distributed at [licenses/threefish-license.txt](licenses/threefish-license.txt). Source: https://github.com/RustCrypto/block-ciphers/tree/threefish-v0.5.2/threefish ## RustCrypto Magma/GOST The GOST 28147-89 TestSbox constants and key ordering in `sunpack/sunpack_enc/src/gost.rs` are adapted from RustCrypto magma 0.9.0, Copyright (c) 2017 Artyom Pavlov, under the MIT license. SunPack shares compile-time substitution/rotation tables and interleaves independent blocks. The full notice is distributed at [licenses/magma-license.txt](licenses/magma-license.txt). Source: https://github.com/RustCrypto/block-ciphers/tree/magma-v0.9.0/magma ## RustCrypto RC6 The RC6-32/20/32 key expansion and rounds in `sunpack/sunpack_enc/src/rc6.rs` are adapted from RustCrypto rc6 0.1.0, Copyright (c) 2017 Damian Czaja, under the MIT license. SunPack uses an AVX2 backend with eight blocks per vector state, interleaved states, and scalar tails. The full notice is distributed at [licenses/rc6-license.txt](licenses/rc6-license.txt). Source: https://github.com/RustCrypto/block-ciphers/tree/rc6-v0.1.0/rc6 ## RustCrypto Blowfish The Blowfish key expansion and initial P/S constants in `sunpack/sunpack_enc/src/blowfish.rs` and `blowfish_init.rs` are adapted from RustCrypto blowfish 0.9.1, Copyright (c) 2006-2009 Graydon Hoare and Copyright (c) 2009-2013 Mozilla Foundation, under the MIT license. SunPack interleaves independent blocks and shares one expanded key across CTR tasks. The full notice is distributed at [licenses/blowfish-license.txt](licenses/blowfish-license.txt). Source: https://github.com/RustCrypto/block-ciphers/tree/blowfish-v0.9.1/blowfish ## AOSP ZIP filename frequency data SunPack derives its read-only Japanese, Simplified Chinese, Traditional Chinese, and Korean filename scores from `CharacterEncodingDetectorTables.h`, Copyright (C) 2013 The Android Open Source Project, licensed under Apache License 2.0. `scripts/generate_zip_filename_frequencies.py` quantizes the ranks of Han characters and Hangul syllables into three frequency bands. The license is distributed at [licenses/aosp-zip-frequencies-license.txt](licenses/aosp-zip-frequencies-license.txt). Source: https://android.googlesource.com/platform/frameworks/av/+/03357add725340c290b10f50db090267bbf511b1/media/libmedia/CharacterEncodingDetectorTables.h