function lowlevelSub()

in src/ristretto255.js [814:822]


function lowlevelSub(P, Q) {
  // negate Q: -(x,y,z,t) = (-x, y, z, -t)
  const negQ3 = lowlevel.gf();
  neg25519(negQ3, Q[3]);
  const negQ0 = lowlevel.gf();
  neg25519(negQ0, Q[0]);
  const negQ = [negQ0, Q[1], Q[2], negQ3];
  lowlevel.add(P, negQ);
}