Lines Matching defs:rep
159 rep = bignum_common.ModulusRepresentation.INVALID
162 self.rep = r
165 return ([bignum_common.quote_str(self.arg_n), self.rep.symbol(),
171 mod_with_rep = 'mod({})'.format(self.rep.name)
175 def test_cases_for_values(cls, rep: bignum_common.ModulusRepresentation,
180 or multiple test cases if rep requires different data depending
185 test_object.set_representation(rep)
191 if rep is not bignum_common.ModulusRepresentation.MONTGOMERY:
197 if rep is not bignum_common.ModulusRepresentation.MONTGOMERY:
208 for rep in bignum_common.ModulusRepresentation.supported_representations():
211 yield from cls.test_cases_for_values(rep, n, a)
219 return [self.format_result(self.convert_from_canonical(self.int_a, self.rep))]
228 return self.format_arg("{:x}".format(self.convert_from_canonical(self.int_a, self.rep)))