From eb06dcba8902b5eef34ebb50076433c471d7f4e7 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Sat, 14 Dec 2024 18:52:15 +0800 Subject: [PATCH] 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)