Added xorenc function.

Signed-off-by: Brian Nash <bcnjr5@MB.(none)>