Streebog.hs.stb.rounds: def of bend-osdev-hashes@0.1.0.0 Import: import bend-osdev-hashes@0.1.0.0/streebog.bend as Streebog Lines 766-772 of bend-osdev-hashes@0.1.0.0/streebog.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-hashes@0.1.0.0/streebog.bend&start_line=766&end_line=772 import Base import bend-osdev-hashes@0.1.0.0/hashes.bend as Hs # E's rounds: x the data so far, k the round key; then the last key added def hs.stb.rounds(cs: List<&2, Hs.HsW16>, +t: HsStbTabs, +k: Hs.HsW16, x: Hs.HsW16) -> Hs.HsW16: match cs: case Nil{}: hs.stb.xor(x, k) case Con{c, rest}: hs.stb.rounds(rest, t, hs.stb.lps(t, hs.stb.xor(k, c)), hs.stb.lps(t, hs.stb.xor(x, k))) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-osdev-hashes@0.1.0.0/hashes.bend&name=HsW16 https://jend.leeeet.dev/definition.txt?path=bend-osdev-hashes@0.1.0.0/streebog.bend&name=HsStbTabs https://jend.leeeet.dev/definition.txt?path=bend-osdev-hashes@0.1.0.0/streebog.bend&name=hs.stb.lps https://jend.leeeet.dev/definition.txt?path=bend-osdev-hashes@0.1.0.0/streebog.bend&name=hs.stb.xor