Hmac.xor_pad: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/spec/crypto/hmac.bend as Hmac Lines 46-52 of bend-collections@1.0.0.0/spec/crypto/hmac.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/spec/crypto/hmac.bend&start_line=46&end_line=52 import Base # Byte-wise exclusive or of K0 with a pad byte (steps 4 and 7). def xor_pad(ks: List<&2, U32>, +pad: U32) -> List<&2, U32>: match ks: case Nil{}: Nil{} case k <> rest: U32.xor(k, pad) <> xor_pad(rest, pad) Uses (3): 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.xor