Skip to content

Commit

Permalink
Fix type mismatch for shake/digest! and setup x86 ci (#117)
Browse files Browse the repository at this point in the history
* ci: set julia version

* ci: fix type mismatch
  • Loading branch information
inkydragon authored Dec 14, 2024
1 parent 0b76d04 commit aba9014
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/shake.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aba9014

Please sign in to comment.