Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package blake3 for openSUSE:Factory checked in at 2026-12-02 16:58:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/blake3 (Old) and /work/SRC/openSUSE:Factory/.blake3.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "blake3" Wed Dec 2 16:58:51 2026 rev:8 rq:1401777 version:1.8.8 Changes: -------- --- /work/SRC/openSUSE:Factory/blake3/blake3.changes 2026-09-01 15:46:37.333123425 +0200 +++ /work/SRC/openSUSE:Factory/.blake3.new.1340718/blake3.changes 2026-12-02 16:58:56.073174369 +0100 @@ -1,0 +2,12 @@ +Mon Nov 30 00:00:00 UTC 2026 - Eyad Issa <[email protected]> + +- Update to version 1.8.8: + * Add some alignment optimizations to make performance more + consistent for short inputs. + * Fix a soundness issue in blake3_xof_many_avx512, which is + public but hidden (for benchmarks). Callers using the + documented API are unaffected. + * Hash::to_hex and Hash::from_hex are more likely to be + constant time. + +------------------------------------------------------------------- Old: ---- blake3-1.8.7.tar.gz New: ---- blake3-1.8.8.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ blake3.spec ++++++ --- /var/tmp/diff_new_pack.kRuypR/_old 2026-12-02 16:58:57.769245981 +0100 +++ /var/tmp/diff_new_pack.kRuypR/_new 2026-12-02 16:58:57.772246108 +0100 @@ -30,7 +30,7 @@ %bcond_with b3sum Name: blake3 -Version: 1.8.7 +Version: 1.8.8 Release: 0 Summary: A cryptographic hash function License: Apache-2.0 ++++++ blake3-1.8.7.tar.gz -> blake3-1.8.8.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BLAKE3-1.8.7/.github/workflows/ci.yml new/BLAKE3-1.8.8/.github/workflows/ci.yml --- old/BLAKE3-1.8.7/.github/workflows/ci.yml 2026-08-20 10:50:34.000000000 +0200 +++ new/BLAKE3-1.8.8/.github/workflows/ci.yml 2026-11-26 21:33:30.000000000 +0100 @@ -29,7 +29,7 @@ channel: ["stable", "beta", "nightly"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ format('{0}-{1}', matrix.channel, matrix.target.toolchain) }} @@ -155,7 +155,7 @@ matrix: os: ["ubuntu-latest", "macOS-latest", "windows-latest"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 # The current MSRV. This crate doesn't have an official MSRV policy, # but in practice we'll probably do what libc does: # https://github.com/rust-lang/libs-team/issues/72. @@ -180,7 +180,7 @@ channel: ["stable", "beta", "nightly"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ format('{0}-{1}', matrix.channel, matrix.target.toolchain) }} @@ -214,7 +214,7 @@ - s390x-unknown-linux-gnu steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@stable - run: cargo install cross # Test the portable implementation on everything. @@ -239,7 +239,7 @@ name: WASM tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@stable with: targets: wasm32-wasip1 @@ -267,8 +267,10 @@ name: cargo xwin test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - run: docker run -v $(pwd):/io -w /io messense/cargo-xwin cargo xwin test --target x86_64-pc-windows-msvc --features=mmap,rayon,traits-preview,serde,zeroize + - uses: actions/checkout@v7 + - uses: docker/setup-docker-action@v5 + - run: docker version + - run: docker run --rm -v "$PWD:/io" -w /io messense/cargo-xwin cargo xwin test --target x86_64-pc-windows-msvc --features=mmap,rayon,traits-preview,serde,zeroize # Currently only on x86. cmake_c_tests: @@ -280,7 +282,7 @@ use_tbb: ["OFF", "ON"] simd: ["x86-intrinsics", "amd64-asm"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - run: | sudo apt-get update sudo apt-get install ninja-build libtbb-dev libtbb12 @@ -326,7 +328,7 @@ shared_libs: ["OFF", "ON"] stdlib: ["libc++", "libstdc++"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: update packages run: | sudo apt-get update @@ -352,7 +354,7 @@ strategy: fail-fast: false steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@stable with: targets: aarch64-apple-darwin @@ -366,7 +368,7 @@ name: build with the Tiny C Compiler runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: install TCC run: sudo apt-get install -y tcc - name: compile @@ -383,16 +385,15 @@ name: "compile and test with GCC 5.4" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: addnab/docker-run-action@v3 - with: - image: gcc:5.4 - options: -v ${{ github.workspace }}:/work - run: | + - uses: actions/checkout@v7 + - uses: docker/setup-docker-action@v5 + - run: docker version + - run: | + docker run --rm -v "$PWD:/work" -w /work gcc:5.4 sh -ec ' cat /proc/cpuinfo curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal - cd /work ~/.cargo/bin/cargo test --features prefer_intrinsics + ' # CMake build test (Library only). cmake_current_build: @@ -427,8 +428,8 @@ toolchain: { cc: gcc, cxx: g++ } use_tbb: ON steps: - - uses: actions/checkout@v4 - - uses: lukka/get-cmake@5f6e04f5267c8133f1273bf2103583fc72c46b17 + - uses: actions/checkout@v7 + - uses: lukka/get-cmake@fffaaafeea488556c2c12dad60690008bc1caacb # v4.4.2 with: cmakeVersion: ${{ matrix.cmakeVersion }} ninjaVersion: ${{ matrix.ninjaVersion }} @@ -442,6 +443,21 @@ run: | sudo apt-get update sudo apt-get install libtbb-dev libtbb12 + # The clang-cl + TBB build can fail with an old Clang version. Use Visual + # Studio's bundled Clang to match its MSVC standard library. + - if: runner.os == 'Windows' && matrix.toolchain.cc == 'clang-cl' + name: prepend Visual Studio Clang to PATH + run: | + $vsInstallPath = & "${env:ProgramFiles(x86)}/Microsoft Visual Studio/Installer/vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath + if (-not $vsInstallPath) { + throw "Visual Studio with C++ tools was not found." + } + $clangBin = Join-Path $vsInstallPath 'VC\Tools\Llvm\x64\bin' + if (-not (Test-Path (Join-Path $clangBin 'clang-cl.exe'))) { + throw "Visual Studio's bundled Clang was not found at $clangBin." + } + $clangBin >> $env:GITHUB_PATH + & (Join-Path $clangBin 'clang-cl.exe') --version - name: CMake generation, build, install run: | ${{ matrix.os != 'windows-latest' || '$vs_install_path = & "${env:ProgramFiles(x86)}/Microsoft Visual Studio/Installer/vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath; & "$vs_install_path/Common7/Tools/Launch-VsDevShell.ps1" -Arch amd64 -SkipAutomaticLocation' }} @@ -452,8 +468,8 @@ name: CMake 3.9.6 ubuntu-latest runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: lukka/get-cmake@5f6e04f5267c8133f1273bf2103583fc72c46b17 + - uses: actions/checkout@v7 + - uses: lukka/get-cmake@fffaaafeea488556c2c12dad60690008bc1caacb # v4.4.2 with: cmakeVersion: 3.9.6 - name: Create build directory @@ -469,7 +485,7 @@ name: Miri smoketest runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@nightly with: components: miri @@ -486,7 +502,7 @@ matrix: os: ["ubuntu-latest", "macOS-latest"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@stable - name: install TBB if: matrix.os == 'ubuntu-latest' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BLAKE3-1.8.7/.github/workflows/tag.yml new/BLAKE3-1.8.8/.github/workflows/tag.yml --- old/BLAKE3-1.8.7/.github/workflows/tag.yml 2026-08-20 10:50:34.000000000 +0200 +++ new/BLAKE3-1.8.8/.github/workflows/tag.yml 2026-11-26 21:33:30.000000000 +0100 @@ -23,8 +23,8 @@ ] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v7 + - uses: actions/setup-python@v7 with: python-version: "3.x" - run: pip install PyGithub diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BLAKE3-1.8.7/Cargo.toml new/BLAKE3-1.8.8/Cargo.toml --- old/BLAKE3-1.8.7/Cargo.toml 2026-08-20 10:50:34.000000000 +0200 +++ new/BLAKE3-1.8.8/Cargo.toml 2026-11-26 21:33:30.000000000 +0100 @@ -1,6 +1,6 @@ [package] name = "blake3" -version = "1.8.7" +version = "1.8.8" authors = ["Jack O'Connor <[email protected]>", "Samuel Neves"] description = "the BLAKE3 hash function" repository = "https://github.com/BLAKE3-team/BLAKE3" @@ -113,7 +113,7 @@ [dependencies] arrayvec = { version = "0.7.4", default-features = false } -constant_time_eq = { version = "0.4.2", default-features = false } +constant_time_eq = { version = "0.6.2", default-features = false } cfg-if = "1.0.0" digest = { version = "0.11.2", features = ["mac"], optional = true } memmap2 = { version = "0.9", optional = true } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BLAKE3-1.8.7/README.md new/BLAKE3-1.8.8/README.md --- old/BLAKE3-1.8.7/README.md 2026-08-20 10:50:34.000000000 +0200 +++ new/BLAKE3-1.8.8/README.md 2026-11-26 21:33:30.000000000 +0100 @@ -208,6 +208,7 @@ * [IPFS](https://github.com/ipfs/go-verifcid/issues/13) * [Iroh](https://www.iroh.computer/blog/blake3-hazmat-api) * [LLVM](https://reviews.llvm.org/D121510) +* [Mold](https://arxiv.org/html/2608.23228v1) * [Nix](https://github.com/NixOS/nix/pull/12379) * [Nym](https://github.com/nymtech/nym/blob/59056a22c5e6b01a38da2124662bd1fa3c8abef2/common/nymsphinx/params/src/lib.rs#L5) * [OpenZFS](https://github.com/openzfs/zfs/) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BLAKE3-1.8.7/b3sum/Cargo.lock new/BLAKE3-1.8.8/b3sum/Cargo.lock --- old/BLAKE3-1.8.7/b3sum/Cargo.lock 2026-08-20 10:50:34.000000000 +0200 +++ new/BLAKE3-1.8.8/b3sum/Cargo.lock 2026-11-26 21:33:30.000000000 +0100 @@ -38,7 +38,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" dependencies = [ - "windows-sys 0.61.2", + "windows-sys", ] [[package]] @@ -49,14 +49,14 @@ dependencies = [ "anstyle", "once_cell_polyfill", - "windows-sys 0.61.2", + "windows-sys", ] [[package]] name = "anyhow" -version = "1.0.104" +version = "1.0.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" +checksum = "2cb931c189b85683d69a5cfad41d4d418671e1ac413dd209f3f2fc31e3cfd902" [[package]] name = "arrayvec" @@ -66,7 +66,7 @@ [[package]] name = "b3sum" -version = "1.8.7" +version = "1.8.8" dependencies = [ "anyhow", "blake3", @@ -80,13 +80,13 @@ [[package]] name = "bitflags" -version = "2.13.1" +version = "2.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" [[package]] name = "blake3" -version = "1.8.7" +version = "1.8.8" dependencies = [ "arrayvec", "cc", @@ -99,9 +99,9 @@ [[package]] name = "cc" -version = "1.4.3" +version = "1.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "509591b7bcd67f4ef775afad7662703b4935daaa6ec0e5605cfb1090b32a2b6d" +checksum = "02f0e023adb368345ce0ca6cdfc0f24a06554468d0e8503e14a0841de79bfa69" dependencies = [ "find-msvc-tools", "shlex", @@ -109,15 +109,15 @@ [[package]] name = "cfg-if" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" [[package]] name = "clap" -version = "4.6.6" +version = "4.6.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "473c7e07f409a8d772161724aa8db6a765a2532a70f9667eeb7b49d3d02fbdca" +checksum = "50066ca966813ca8957ee15361752f19424a8ff620dbe9c8993d9f99d99b04b3" dependencies = [ "clap_builder", "clap_derive", @@ -125,9 +125,9 @@ [[package]] name = "clap_builder" -version = "4.6.6" +version = "4.6.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b48fea5a88e9ae728a2dcbedbfc0e730f7d60da42e1cb049a83c9fb8b789889" +checksum = "a0ed97c96ef4efb3cc84e09fa388df4463e7cc3224ec38d7b1d9e45749333590" dependencies = [ "anstream", "anstyle", @@ -138,9 +138,9 @@ [[package]] name = "clap_derive" -version = "4.6.4" +version = "4.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d012d2b9d65aca7f18f4d9878a045bc17899bba951561ba5ec3c2ba1eed9a061" +checksum = "b4c174f11f949b9ca8c60580925e282b9cbd5454750e506f08648b2038080cd7" dependencies = [ "heck", "proc-macro2", @@ -150,9 +150,9 @@ [[package]] name = "clap_lex" -version = "1.1.0" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" +checksum = "e0921b3876b3a1df8a1c9f912e7f94342458022c2e84288015893d83c4d62a79" [[package]] name = "colorchoice" @@ -162,24 +162,27 @@ [[package]] name = "constant_time_eq" -version = "0.4.2" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b" +checksum = "144e7f1de087984240b7816d47f698b414979faa6f40839c5b86d6bd47db57b7" +dependencies = [ + "rustversion", +] [[package]] name = "cpufeatures" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201" +checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" dependencies = [ "libc", ] [[package]] name = "crossbeam-deque" -version = "0.8.7" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb" +checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a" dependencies = [ "crossbeam-epoch", "crossbeam-utils", @@ -187,24 +190,24 @@ [[package]] name = "crossbeam-epoch" -version = "0.9.20" +version = "0.9.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f" +checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d" dependencies = [ "crossbeam-utils", ] [[package]] name = "crossbeam-utils" -version = "0.8.22" +version = "0.8.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" [[package]] name = "duct" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e66e9c0c03d094e1a0ba1be130b849034aa80c3a2ab8ee94316bc809f3fa684" +checksum = "61b9e2a29ff01e8bb526a571ad06c10ed72aae80d5999ed204f7971f99f19974" dependencies = [ "libc", "os_pipe", @@ -214,12 +217,12 @@ [[package]] name = "errno" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys", ] [[package]] @@ -230,9 +233,9 @@ [[package]] name = "find-msvc-tools" -version = "0.1.11" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d45db016d36b838f563236e9193d0ee6ce38f3f68b6c94e914b4929c96bbb890" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" [[package]] name = "getrandom" @@ -271,9 +274,9 @@ [[package]] name = "libc" -version = "0.2.189" +version = "0.2.191" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" [[package]] name = "linux-raw-sys" @@ -283,9 +286,9 @@ [[package]] name = "memmap2" -version = "0.9.11" +version = "0.9.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1219ed1b7f229ee7104d281dd01d6802fe28bb6e95d292942c4daacdeb798c0" +checksum = "6b0ca1155a9ecc25aa12e8313a119f32edf0255fea2f44839c4ac0a12b2ac157" dependencies = [ "libc", ] @@ -309,7 +312,7 @@ checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys", ] [[package]] @@ -348,33 +351,39 @@ [[package]] name = "rustix" -version = "1.1.4" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" dependencies = [ "bitflags", "errno", "libc", "linux-raw-sys", - "windows-sys 0.61.2", + "windows-sys", ] [[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] name = "shared_child" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e362d9935bc50f019969e2f9ecd66786612daae13e8f277be7bfb66e8bed3f7" +checksum = "607549934f6cc26b89cfecfdc46fa90f1e5d1536a68349b0c3a4f9d1c0d37959" dependencies = [ "libc", "sigchld", - "windows-sys 0.60.2", + "windows-sys", ] [[package]] name = "shared_thread" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52b86057fcb5423f5018e331ac04623e32d6b5ce85e33300f92c79a1973928b0" +checksum = "de1c6cdf07f3a4b1900680728ac1a12f72aa6424f37138f9253116461576e00f" [[package]] name = "shlex" @@ -384,9 +393,9 @@ [[package]] name = "sigchld" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47106eded3c154e70176fc83df9737335c94ce22f821c32d17ed1db1f83badb1" +checksum = "24f2b37f04360cd465089b87a9c3869c08220a2f3458463f0adf8badf5e77f2c" dependencies = [ "libc", "os_pipe", @@ -395,9 +404,9 @@ [[package]] name = "signal-hook" -version = "0.3.18" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2" +checksum = "49f7447afd772ca79ad17ae0a3972a6b0df0cb4b80990fd82707593e9e012a74" dependencies = [ "libc", "signal-hook-registry", @@ -421,9 +430,9 @@ [[package]] name = "syn" -version = "3.0.3" +version = "3.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3" +checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79" dependencies = [ "proc-macro2", "quote", @@ -440,7 +449,7 @@ "getrandom", "once_cell", "rustix", - "windows-sys 0.61.2", + "windows-sys", ] [[package]] @@ -450,14 +459,14 @@ checksum = "230a1b821ccbd75b185820a1f1ff7b14d21da1e442e22c0863ea5f08771a8874" dependencies = [ "rustix", - "windows-sys 0.61.2", + "windows-sys", ] [[package]] name = "unicode-ident" -version = "1.0.24" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" [[package]] name = "utf8parse" @@ -482,83 +491,9 @@ [[package]] name = "windows-sys" -version = "0.60.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" -dependencies = [ - "windows-targets", -] - -[[package]] -name = "windows-sys" version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ "windows-link", ] - -[[package]] -name = "windows-targets" -version = "0.53.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" -dependencies = [ - "windows-link", - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_gnullvm", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", -] - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" - -[[package]] -name = "windows_i686_gnu" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" - -[[package]] -name = "windows_i686_gnullvm" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" - -[[package]] -name = "windows_i686_msvc" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.53.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BLAKE3-1.8.7/b3sum/Cargo.toml new/BLAKE3-1.8.8/b3sum/Cargo.toml --- old/BLAKE3-1.8.7/b3sum/Cargo.toml 2026-08-20 10:50:34.000000000 +0200 +++ new/BLAKE3-1.8.8/b3sum/Cargo.toml 2026-11-26 21:33:30.000000000 +0100 @@ -1,6 +1,6 @@ [package] name = "b3sum" -version = "1.8.7" +version = "1.8.8" authors = ["Jack O'Connor <[email protected]>"] description = "a command line implementation of the BLAKE3 hash function" repository = "https://github.com/BLAKE3-team/BLAKE3" @@ -15,7 +15,7 @@ [dependencies] anyhow = "1.0.25" -blake3 = { version = "1.8.7", path = "..", features = ["mmap", "rayon"] } +blake3 = { version = "1.8.8", path = "..", features = ["mmap", "rayon"] } clap = { version = "4.0.8", features = ["derive", "wrap_help"] } hex = "0.4.0" rayon-core = "1.12.1" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BLAKE3-1.8.7/c/CMakeLists.txt new/BLAKE3-1.8.8/c/CMakeLists.txt --- old/BLAKE3-1.8.7/c/CMakeLists.txt 2026-08-20 10:50:34.000000000 +0200 +++ new/BLAKE3-1.8.8/c/CMakeLists.txt 2026-11-26 21:33:30.000000000 +0100 @@ -10,7 +10,7 @@ endif() project(libblake3 - VERSION 1.8.7 + VERSION 1.8.8 DESCRIPTION "BLAKE3 C implementation" LANGUAGES C CXX ASM ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BLAKE3-1.8.7/c/blake3.h new/BLAKE3-1.8.8/c/blake3.h --- old/BLAKE3-1.8.7/c/blake3.h 2026-08-20 10:50:34.000000000 +0200 +++ new/BLAKE3-1.8.8/c/blake3.h 2026-11-26 21:33:30.000000000 +0100 @@ -30,7 +30,7 @@ extern "C" { #endif -#define BLAKE3_VERSION_STRING "1.8.7" +#define BLAKE3_VERSION_STRING "1.8.8" #define BLAKE3_KEY_LEN 32 #define BLAKE3_OUT_LEN 32 #define BLAKE3_BLOCK_LEN 64 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BLAKE3-1.8.7/c/blake3_avx512_x86-64_unix.S new/BLAKE3-1.8.8/c/blake3_avx512_x86-64_unix.S --- old/BLAKE3-1.8.7/c/blake3_avx512_x86-64_unix.S 2026-08-20 10:50:34.000000000 +0200 +++ new/BLAKE3-1.8.8/c/blake3_avx512_x86-64_unix.S 2026-11-26 21:33:30.000000000 +0100 @@ -2562,6 +2562,7 @@ mov r10,QWORD PTR [rsp+0x8] cmp r10,0x1 ja 2f + jb 4f vmovdqu xmm0,XMMWORD PTR [rdi] vmovdqu xmm1,XMMWORD PTR [rdi+0x10] movzx eax,r8b @@ -2643,7 +2644,8 @@ vmovdqu XMMWORD PTR [r9+0x10],xmm1 vmovdqu XMMWORD PTR [r9+0x20],xmm2 vmovdqu XMMWORD PTR [r9+0x30],xmm3 - ret +4: + ret .p2align 6 2: push rbp @@ -3587,10 +3589,10 @@ test r10,r10 jne 2f 9: - vzeroupper + vzeroupper mov rsp,rbp pop rbp - ret + ret 2: test r10,0x8 je 2f diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BLAKE3-1.8.7/src/hex.rs new/BLAKE3-1.8.8/src/hex.rs --- old/BLAKE3-1.8.7/src/hex.rs 1970-01-01 01:00:00.000000000 +0100 +++ new/BLAKE3-1.8.8/src/hex.rs 2026-11-26 21:33:30.000000000 +0100 @@ -0,0 +1,50 @@ +/// These constant-time-ish algorithms (nothing is really guaranteed to be constant time without +/// dropping down to assembly) are adapted from the `key_to_hex` and `key_from_hex` functions here: +/// https://git.zx2c4.com/wireguard-tools/tree/src/encoding.c?h=v1.0.20260223 + +const HEX_LETTER_OFFSET: u8 = b'a' - 0xa; // 87 +const HEX_NUMBER_ADJUSTMENT: u8 = b'0'.wrapping_sub(HEX_LETTER_OFFSET); // -39 or !38, but unsigned + +pub fn nibble_to_hex_constant_time_ish(nibble: u8) -> u8 { + debug_assert!(nibble < 16); + // 0 <= nibble <= 9: 0xff + // 10 <= nibble <= 15: 0x00 + let is_number_mask = ((nibble as u32).wrapping_sub(10) >> 8) as u8; + (nibble + HEX_LETTER_OFFSET).wrapping_add(is_number_mask & HEX_NUMBER_ADJUSTMENT) +} + +#[test] +fn test_nibble_to_hex_constant_time_ish() { + for i in 0..=9 { + assert_eq!(b'0' + i, nibble_to_hex_constant_time_ish(i)); + } + for i in 10..=15 { + assert_eq!(b'a' + (i - 10), nibble_to_hex_constant_time_ish(i)); + } +} + +const ASCII_CASE_BIT: u8 = b'A' ^ b'a'; // 0x20 + +// The zero-or-positive nibble if the hex digit is valid, otherwise -1. +pub fn hex_to_nibble_constant_time_ish(hex_digit: u8) -> i32 { + let number = hex_digit.wrapping_sub(b'0') as i32; // 0-9 if a number, otherwise larger + let is_number_mask = (number - 10) >> 8; // 0xffffffff if a number, otherwise 0x00000000 + // Setting the case bit normalizes 'A' to 'a' and leaves 'a' unchanged. + let letter = (hex_digit | ASCII_CASE_BIT).wrapping_sub(b'a') as i32; // 0-5 if a letter, otherwise larger + let is_letter_mask = (letter - 6) >> 8; // 0xffffffff if a letter, otherwise 0x00000000 + let is_invalid_mask = !(is_number_mask | is_letter_mask); + (number & is_number_mask) | ((letter + 10) & is_letter_mask) | is_invalid_mask +} + +#[test] +fn test_hex_to_nibble_constant_time_ish() { + for i in 0x00..=0xff { + let expected = match i { + b'0'..=b'9' => (i - b'0') as i32, + b'A'..=b'F' => (i - b'A' + 10) as i32, + b'a'..=b'f' => (i - b'a' + 10) as i32, + _ => -1, + }; + assert_eq!(hex_to_nibble_constant_time_ish(i), expected); + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BLAKE3-1.8.7/src/lib.rs new/BLAKE3-1.8.8/src/lib.rs --- old/BLAKE3-1.8.7/src/lib.rs 2026-08-20 10:50:34.000000000 +0200 +++ new/BLAKE3-1.8.8/src/lib.rs 2026-11-26 21:33:30.000000000 +0100 @@ -135,6 +135,7 @@ #[cfg(feature = "traits-preview")] pub mod traits; +mod hex; #[cfg(feature = "std")] mod io; mod join; @@ -142,6 +143,7 @@ use arrayvec::{ArrayString, ArrayVec}; use core::cmp; use core::fmt; +use core::ops::{Deref, DerefMut}; use platform::{MAX_SIMD_DEGREE, MAX_SIMD_DEGREE_OR_2, Platform}; #[cfg(feature = "zeroize")] use zeroize::Zeroize; @@ -278,10 +280,9 @@ /// [`ArrayString`]: https://docs.rs/arrayvec/0.5.1/arrayvec/struct.ArrayString.html pub fn to_hex(&self) -> ArrayString<{ 2 * OUT_LEN }> { let mut s = ArrayString::new(); - let table = b"0123456789abcdef"; for &b in self.0.iter() { - s.push(table[(b >> 4) as usize] as char); - s.push(table[(b & 0xf) as usize] as char); + s.push(hex::nibble_to_hex_constant_time_ish(b >> 4) as char); + s.push(hex::nibble_to_hex_constant_time_ish(b & 0xf) as char); } s } @@ -296,23 +297,27 @@ /// Note that `Hash` also implements `FromStr`, so `Hash::from_hex("...")` /// is equivalent to `"...".parse()`. pub fn from_hex(hex: impl AsRef<[u8]>) -> Result<Self, HexError> { - fn hex_val(byte: u8) -> Result<u8, HexError> { - match byte { - b'A'..=b'F' => Ok(byte - b'A' + 10), - b'a'..=b'f' => Ok(byte - b'a' + 10), - b'0'..=b'9' => Ok(byte - b'0'), - _ => Err(HexError(HexErrorInner::InvalidByte(byte))), - } - } let hex_bytes: &[u8] = hex.as_ref(); if hex_bytes.len() != OUT_LEN * 2 { return Err(HexError(HexErrorInner::InvalidLen(hex_bytes.len()))); } let mut hash_bytes: [u8; OUT_LEN] = [0; OUT_LEN]; + let mut accumulator = 0; for i in 0..OUT_LEN { - hash_bytes[i] = 16 * hex_val(hex_bytes[2 * i])? + hex_val(hex_bytes[2 * i + 1])?; + // Invalid hex characters return -1. + let high_nibble: i32 = hex::hex_to_nibble_constant_time_ish(hex_bytes[2 * i]); + accumulator |= high_nibble; + let low_nibble: i32 = hex::hex_to_nibble_constant_time_ish(hex_bytes[2 * i + 1]); + accumulator |= low_nibble; + // `wrapping_add` is unnecessary for valid hex, but in the invalid case we add 0xff. + hash_bytes[i] = ((high_nibble as u8) << 4).wrapping_add(low_nibble as u8); + } + // If we saw any -1's above, fail. + if accumulator < 0 { + Err(HexError(HexErrorInner::InvalidByte)) + } else { + Ok(Hash::from(hash_bytes)) } - Ok(Hash::from(hash_bytes)) } } @@ -405,19 +410,15 @@ #[derive(Clone, Debug)] enum HexErrorInner { - InvalidByte(u8), + InvalidByte, InvalidLen(usize), } impl fmt::Display for HexError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self.0 { - HexErrorInner::InvalidByte(byte) => { - if byte < 128 { - write!(f, "invalid hex character: {:?}", byte as char) - } else { - write!(f, "invalid hex character: 0x{:x}", byte) - } + HexErrorInner::InvalidByte => { + write!(f, "invalid hex character") } HexErrorInner::InvalidLen(len) => { write!(f, "expected 64 hex bytes, received {}", len) @@ -429,13 +430,57 @@ #[cfg(feature = "std")] impl std::error::Error for HexError {} +// A 64-byte block of compression function input, with 64-byte alignment. This +// is the type of ChunkState.buf and Output.block. glibc's AVX-512 memcpy +// writes a 64-byte copy with a pair of overlapping unaligned 64-byte vector +// stores, and the immediate reload of the destination then fails +// store-to-load forwarding whenever the stack frame leaves it misaligned +// (address & 31 != 0). Stack layout decides which case each process gets, so +// the same binary hashes 64-byte inputs 35-45% slower in some processes than +// in others (measured on Zen 5). Aligning ChunkState.buf pins every process +// to the forwarding-friendly case, and Output.block gets the same alignment +// so that its residue is pinned as well, rather than frozen at whatever spot +// the realigned frame happens to give it. Measurements are in +// https://github.com/zooko/bench-hashes/issues/2 and +// https://github.com/BLAKE3-team/BLAKE3/pull/582. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +#[repr(align(64))] +struct Aligned64([u8; BLOCK_LEN]); + +impl Deref for Aligned64 { + type Target = [u8; BLOCK_LEN]; + + fn deref(&self) -> &[u8; BLOCK_LEN] { + &self.0 + } +} + +impl DerefMut for Aligned64 { + fn deref_mut(&mut self) -> &mut [u8; BLOCK_LEN] { + &mut self.0 + } +} + +impl PartialEq<[u8; BLOCK_LEN]> for Aligned64 { + fn eq(&self, other: &[u8; BLOCK_LEN]) -> bool { + self.0 == *other + } +} + +#[cfg(feature = "zeroize")] +impl Zeroize for Aligned64 { + fn zeroize(&mut self) { + self.0.zeroize(); + } +} + // Each chunk or parent node can produce either a 32-byte chaining value or, by // setting the ROOT flag, any number of final output bytes. The Output struct // captures the state just prior to choosing between those two possibilities. #[derive(Clone)] struct Output { input_chaining_value: CVWords, - block: [u8; 64], + block: Aligned64, block_len: u8, counter: u64, flags: u8, @@ -499,7 +544,7 @@ struct ChunkState { cv: CVWords, chunk_counter: u64, - buf: [u8; BLOCK_LEN], + buf: Aligned64, buf_len: u8, blocks_compressed: u8, flags: u8, @@ -511,7 +556,7 @@ Self { cv: *key, chunk_counter, - buf: [0; BLOCK_LEN], + buf: Aligned64([0; BLOCK_LEN]), buf_len: 0, blocks_compressed: 0, flags, @@ -555,7 +600,7 @@ block_flags, ); self.buf_len = 0; - self.buf = [0; BLOCK_LEN]; + self.buf = Aligned64([0; BLOCK_LEN]); self.blocks_compressed += 1; } } @@ -890,7 +935,9 @@ // compress_subtree_to_parent_node(). Output { input_chaining_value: *key, - block: compress_subtree_to_parent_node::<J>(input, key, 0, flags, platform), + block: Aligned64(compress_subtree_to_parent_node::<J>( + input, key, 0, flags, platform, + )), block_len: BLOCK_LEN as u8, counter: 0, flags: flags | PARENT, @@ -1015,7 +1062,7 @@ flags: u8, platform: Platform, ) -> Output { - let mut block = [0; BLOCK_LEN]; + let mut block = Aligned64([0; BLOCK_LEN]); block[..32].copy_from_slice(left_child); block[32..].copy_from_slice(right_child); Output { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/BLAKE3-1.8.7/src/test.rs new/BLAKE3-1.8.8/src/test.rs --- old/BLAKE3-1.8.7/src/test.rs 2026-08-20 10:50:34.000000000 +0200 +++ new/BLAKE3-1.8.8/src/test.rs 2026-11-26 21:33:30.000000000 +0100 @@ -731,14 +731,19 @@ #[cfg(feature = "std")] assert_eq!(_result.to_string(), "expected 64 hex bytes, received 13"); - let bad_char = "Z4e0bb39f30b1a3feb89f536c93be15055482df748674b00d26e5a75777702e9"; - let _result = crate::Hash::from_hex(bad_char).unwrap_err(); + let first_bad_char = "Z4e0bb39f30b1a3feb89f536c93be15055482df748674b00d26e5a75777702e9"; + let _result = crate::Hash::from_hex(first_bad_char).unwrap_err(); #[cfg(feature = "std")] - assert_eq!(_result.to_string(), "invalid hex character: 'Z'"); + assert_eq!(_result.to_string(), "invalid hex character"); + + let last_bad_char = "04e0bb39f30b1a3feb89f536c93be15055482df748674b00d26e5a75777702eZ"; + let _result = crate::Hash::from_hex(last_bad_char).unwrap_err(); + #[cfg(feature = "std")] + assert_eq!(_result.to_string(), "invalid hex character"); let _result = crate::Hash::from_hex([128; 64]).unwrap_err(); #[cfg(feature = "std")] - assert_eq!(_result.to_string(), "invalid hex character: 0x80"); + assert_eq!(_result.to_string(), "invalid hex character"); } // This test is a mimized failure case for the Windows SSE2 bug described in @@ -809,6 +814,17 @@ _ = hash.as_bytes(); } +#[test] +fn test_block_buffer_alignment() { + // ChunkState.buf and Output.block are Aligned64 so that wide vector stores + // into them (e.g. from memcpy) can store-to-load forward regardless of + // stack layout. See the comment on Aligned64 in lib.rs, the measurements in + // https://github.com/zooko/bench-hashes/issues/2, and the before/after + // benchmarks in https://github.com/BLAKE3-team/BLAKE3/pull/582. + assert_eq!(64, core::mem::align_of::<crate::Aligned64>()); + assert_eq!(0, core::mem::offset_of!(crate::Aligned64, 0)); +} + #[cfg(feature = "zeroize")] #[test] fn test_zeroize() { @@ -822,7 +838,7 @@ chunk_state: crate::ChunkState { cv: [42; 8], chunk_counter: 42, - buf: [42; 64], + buf: crate::Aligned64([42; 64]), buf_len: 42, blocks_compressed: 42, flags: 42, @@ -850,7 +866,7 @@ let mut output_reader = crate::OutputReader { inner: crate::Output { input_chaining_value: [42; 8], - block: [42; 64], + block: crate::Aligned64([42; 64]), counter: 42, block_len: 42, flags: 42, @@ -1083,3 +1099,23 @@ assert_eq!(hasher.finalize(), root); } } + +#[test] +// There's a debug_assert that we fail for non-multiple-of-64 lengths. +#[cfg_attr(debug_assertions, should_panic)] +fn test_xof_many_rounds_down() { + let platform = crate::platform::Platform::detect(); + for i in 0..=128 { + let mut out = [0; 128]; + platform.xof_many(&[42; 8], &[99; 64], 64, 0, 0, &mut out[..i]); + if i < 64 { + assert_eq!(out, [0; 128]); + } else if i < 128 { + assert_ne!(out[..64], [0; 64]); + assert_eq!(out[64..], [0; 64]); + } else { + assert_ne!(out[..64], [0; 64]); + assert_ne!(out[64..], [0; 64]); + } + } +} ++++++ vendor.tar.zst ++++++ /work/SRC/openSUSE:Factory/blake3/vendor.tar.zst /work/SRC/openSUSE:Factory/.blake3.new.1340718/vendor.tar.zst differ: char 7, line 1
