def last_chunk

bend-collections@1.0.0.0 · src/crypto/blake/blake3/blake3.bend:131

import bend-collections@1.0.0.0/src/crypto/blake/blake3/blake3.bend as Blake3
import Base
import bend-collections@1.0.0.0/src/crypto/blake/blake3/types.bend as T

131def last_chunk(a: Array<U32>, +counter: U32, +index: U32, +len: Nat) -> Array<U32> & T.Out:
132  +n = Nat.div(Nat.sub(len,1n),64n)
133  last_go(n,counter,index,1,Nat.sub(len,Nat.mul(n,64n)),iv(),read_block(a,index))

Uses (11)

Used by (1)