def hs.sha1.ch

bend-osdev-hashes@0.1.0.0 · sha1.bend:15

import bend-osdev-hashes@0.1.0.0/sha1.bend as Sha1
import Base

15# the functions of section 4.1.1: Ch (steps 0 to 19), Parity (20 to 39 and
16# 60 to 79), Maj (40 to 59)
17def hs.sha1.ch(+x: U32, y: U32, z: U32) -> U32:
18  U32.xor(U32.and(x, y), U32.and(U32.not(x), z))

Uses (4)

Used by (1)