def CrOct.xor

bend-osdev-crypto@0.1.0.0 · octets.bend:19

import bend-osdev-crypto@0.1.0.0/octets.bend as Octets
import 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)))

Uses (4)

Used by (6)