pub fn pow(self: Self, x: Fe, e: Fe) (NullExponentError || RepresentationError)!Fe 833
834
835
836
837
838
839
840 pub fn pow(self: Self, x: Fe, e: Fe) (NullExponentError || RepresentationError)!Fe {
if (e.montgomery) {
return error.UnexpectedRepresentation;
}
var buf: [Fe.encoded_bytes]u8 = undefined;
e.toBytes(&buf, native_endian) catch unreachable;
return self.powWithEncodedExponent(x, &buf, native_endian);
}
Returns x^e (mod m) in constant time.