def cm.xor_bytes.go

bend-osdev-cipher-modes@0.1.0.0 · cipher_modes.bend:233

import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as CipherModes
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B

233def cm.xor_bytes.go(xs: List<&2, U32>, ys: List<&2, U32>, acc: List<&2, U32>) -> List<&2, U32>:
234  match xs ys:
235    case Con{a, s} Con{b, t}:
236      cm.xor_bytes.go(s, t, Con{cm.byte(U32.xor(a, b)), acc})
237    case _ _:
238      B.rev(acc)

Uses (5)

Used by (1)