def hs.sm3.p0
import bend-osdev-hashes@0.1.0.0/sm3.bend as Sm3import Base
import bend-osdev-hashes@0.1.0.0/hashes.bend as Hs
17# the permutations P0 and P1
18def hs.sm3.p0(+x: U32) -> U32:
19 U32.xor(U32.xor(x, Hs.hs.rotl(x, 9n)), Hs.hs.rotl(x, 17n))