geP3Tobytes static method

void geP3Tobytes(
  1. List<int> s,
  2. GroupElementP3 h
)

Implementation

static void geP3Tobytes(List<int> s, GroupElementP3 h) {
  FieldElement recip = FieldElement();
  FieldElement x = FieldElement();
  FieldElement y = FieldElement();

  feInvert(recip, h.z);
  feMul(x, h.x, recip);
  feMul(y, h.y, recip);
  feTobytes(s, y);
  s[31] ^= feIsnegative(x) << 7;
}