Pkcs7.pkcs7.diff: def of bend-osdev-cipher-modes@0.1.0.0 Import: import bend-osdev-cipher-modes@0.1.0.0/pkcs7.bend as Pkcs7 Lines 42-48 of bend-osdev-cipher-modes@0.1.0.0/pkcs7.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-cipher-modes@0.1.0.0/pkcs7.bend&start_line=42&end_line=48 import Base import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M # 0 when every byte of xs is v def pkcs7.diff(xs: List<&2, U32>, +v: U32, acc: U32) -> U32: match xs: case Nil{}: acc case Con{h, t}: pkcs7.diff(t, v, U32.or(acc, U32.xor(M.cm.byte(h), v))) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.xor https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend&name=cm.byte