Im trying to implement mutual authentication between server and tag using Elliptic Curve Cryptography. I found already prepared algorithm and now Im trying to implement it in Java. I stucked on calculating authentication parameter as: A = R (XOR) X where R and X are points on elliptic curve.
I can't use simple ^ operator or separate it like this (Rt && !X1) || (!Rt && X1) because I can't negate ECPoint. Do you have any idea how can I implement this XOR? Im using bouncy castle library and I was trying to look for some xor method for ECPoint but I couldn't find any. I will be gratefull for any clues.