Sha1.hs.sha1.ch: def of bend-osdev-hashes@0.1.0.0 Import: import bend-osdev-hashes@0.1.0.0/sha1.bend as Sha1 Lines 15-18 of bend-osdev-hashes@0.1.0.0/sha1.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-hashes@0.1.0.0/sha1.bend&start_line=15&end_line=18 import Base # the functions of section 4.1.1: Ch (steps 0 to 19), Parity (20 to 39 and # 60 to 79), Maj (40 to 59) def hs.sha1.ch(+x: U32, y: U32, z: U32) -> U32: U32.xor(U32.and(x, y), U32.and(U32.not(x), z)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.xor