curve: compute endomorphism values