pub fn rejectNonCanonical(self: Self, fe: Fe) error
Rejects field elements that are not in the canonical form.
self: Self
fe: Fe
478 479 480 481 482
pub fn rejectNonCanonical(self: Self, fe: Fe) error{NonCanonical}!void { if (fe.limbs_count() != self.limbs_count() or ct.limbsCmpGeq(fe.v, self.v)) { return error.NonCanonical; } }
Rejects field elements that are not in the canonical form.