def CrOct.xor
import bend-osdev-crypto@0.1.0.0/octets.bend as Octetsimport Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
19# a xor b, byte by byte, over a's length (b's missing bytes count as 0)
20def CrOct.xor(a: B.Octets, b: B.Octets) -> B.Octets:
21 B.Octets.of_list(cr.oct.xorl(B.Octets.to_list(a), B.Octets.to_list(b)))