def rounds7

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

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

111# Seven rounds; round r takes the message words in the order of the
112# permutation applied r times (the fixed BLAKE3 schedule).
113def rounds7(s: T.St, b: T.Block) -> T.St:
114  match b:
115    case T.B{+m0,+m1,+m2,+m3,+m4,+m5,+m6,+m7,+m8,+m9,+m10,+m11,+m12,+m13,+m14,+m15}:
116      round(round(round(round(round(round(round(s,m0,m1,m2,m3,m4,m5,m6,m7,m8,m9,m10,m11,m12,m13,m14,m15),m2,m6,m3,m10,m7,m0,m4,m13,m1,m11,m12,m5,m9,m14,m15,m8),m3,m4,m10,m12,m13,m2,m7,m14,m6,m5,m9,m0,m11,m15,m8,m1),m10,m7,m12,m9,m14,m3,m13,m15,m4,m0,m11,m2,m5,m8,m1,m6),m12,m13,m9,m11,m15,m10,m14,m8,m7,m2,m5,m3,m0,m1,m6,m4),m9,m14,m11,m5,m8,m12,m15,m1,m13,m3,m0,m10,m2,m6,m4,m7),m11,m15,m5,m0,m1,m9,m8,m6,m14,m10,m2,m12,m3,m4,m7,m13)

Uses (3)

Used by (1)