Skip to content

Commit

Permalink
Update src/types.jl
Browse files Browse the repository at this point in the history
Co-authored-by: inky <[email protected]>
  • Loading branch information
staticfloat and inkydragon committed Apr 23, 2024
1 parent 4785a74 commit ebcc3f3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,6 @@ blocklen(::Type{SHA3_256_CTX}) = UInt64(25*8 - 2*digestlen(SHA3_256_CTX))
blocklen(::Type{SHA3_384_CTX}) = UInt64(25*8 - 2*digestlen(SHA3_384_CTX))
blocklen(::Type{SHA3_512_CTX}) = UInt64(25*8 - 2*digestlen(SHA3_512_CTX))

rate_in_bytes(::Type{SHA3_224_CTX}) = 144
rate_in_bytes(::Type{SHA3_256_CTX}) = 136
rate_in_bytes(::Type{SHA3_384_CTX}) = 104
rate_in_bytes(::Type{SHA3_512_CTX}) = 72


# short_blocklen is the size of a block minus the width of bytecount
short_blocklen(::Type{T}) where {T<:SHA_CTX} = blocklen(T) - 2*sizeof(state_type(T))
Expand Down

0 comments on commit ebcc3f3

Please sign in to comment.