From 2c34eb063e2637c1ab5373f28926ef418733820f Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Sat, 14 Dec 2024 18:47:13 +0800 Subject: [PATCH 1/2] ci: set julia version --- .github/workflows/CI.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 032195b..aa3d119 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -38,6 +38,7 @@ jobs: - uses: julia-actions/setup-julia@latest with: version: ${{ matrix.julia-version }} + arch: ${{ matrix.julia-arch }} # Alter the UUID so that we test this package instead of loading # the version that is already built into a Julia's system image. - run: julia --color=yes .ci/test_and_change_uuid.jl From eb06dcba8902b5eef34ebb50076433c471d7f4e7 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Sat, 14 Dec 2024 18:52:15 +0800 Subject: [PATCH 2/2] ci: fix type mismatch --- src/shake.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shake.jl b/src/shake.jl index 18b7ac4..272ce51 100644 --- a/src/shake.jl +++ b/src/shake.jl @@ -99,10 +99,12 @@ function digest!(context::T,d::UInt,p::Ptr{UInt8}) where {T<:SHAKE} end context.used = true p+=blocklen(T) - digest!(context,d-blocklen(T),p) + next_d_len = UInt(d - blocklen(T)) + digest!(context, next_d_len, p) return end end + """ shake128(data::AbstractBytes,d::UInt)