def last_block
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
174# The last block: the remaining bytes, zero-padded to 64.
175def last_block(+r: Nat, pair: Array<U32> & List<&2,U32>, +remain: Nat, h: T.State, +t0: U32, +t1: U32) -> T.State:
176 (a, ws) = pair
177 compress(r, h, words(pad(serialize(ws), 0n, remain)), t0, t1, True{})
Uses (12)
Used by (17)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/blake/blake2s:finish
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake2s/reads:pad0_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake2s/reads:pad10_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake2s/reads:pad11_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/blake/blake2s/reads:pad12_correct
- …