def cr.pbkdf2.xor
import bend-osdev-crypto@0.1.0.0/pbkdf2.bend as Pbkdf2import Base
29# bytewise XOR of two tags (as long as the shorter)
30def cr.pbkdf2.xor(xs: List<&2, U32>, ys: List<&2, U32>) -> List<&2, U32>:
31 match xs ys:
32 case Con{x, xt} Con{y, yt}:
33 Con{U32.xor(x, y), cr.pbkdf2.xor(xt, yt)}
34 case _ _:
35 Nil{}