def block_count

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/blake/blake2s.bend:199

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/blake/blake2s.bend as Blake2s
import Base

199# dd = ceil(ll / 64) blocks, and dd = 1 for the empty message.
200def block_count(+ll: Nat) -> Nat:
201  match ll:
202    case 0n: 1n
203    case 1n+p: Nat.div(Nat.add(ll, 63n), 64n)

Uses (3)

Used by (2)