def last
import bend-collections-laws-crypto@1.0.0.0/src/math/random/chacha8.bend as Chacha8import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as W
53# the last group: 28 words of output, then the next key
54def last(+g: List<&2, W.U64>) -> ChaCha8:
55 C{rekey(List.drop(&2, W.U64, g, 28n)), G0{}, List.take(&2, W.U64, g, 28n)}