def hash
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/blake/blake2s.bend as Blake2simport Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/blake/blake2s/types.bend as T
205def hash(+r: Nat, a: Array<U32>, +ll: Nat) -> T.State:
206 +n = Nat.sub(block_count(ll), 1n)
207 blocks(r, n, 0, 0, 0, Nat.sub(ll, Nat.mul(64n, n)), (a, initial()))
Uses (10)
Used by (4)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/blake/blake2s:checked
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake2s/reads:checked_true
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake2s/reads:hash_tail
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake2s/reads:unchecked_correct