def init

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/blake/blake3.bend:128

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/blake/blake3.bend as Blake3
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/blake/blake3/types.bend as T
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as SC

128# The initial state of compress(h, m, t, len, flags): h[0..7], IV[0..3], the
129# counter t (low word, then the high word, always 0 here: an input has fewer
130# than 2^32 chunks), the block length and the flags.
131def init(c: T.CV, +t: U32, +len: U32, +flags: U32) -> List<&2,U32>:
132  SC.append(U32,cv_words(c),[at(iv(),0n),at(iv(),1n),at(iv(),2n),at(iv(),3n),t,0,len,flags])

Uses (7)

Used by (3)