def hs.sm3.p0

bend-osdev-hashes@0.1.0.0 · sm3.bend:17

import bend-osdev-hashes@0.1.0.0/sm3.bend as Sm3
import 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))

Uses (3)

Used by (1)