Lines Matching refs:int
19 def invmod(a: int, n: int) -> int:
34 def invmod_positive(a: int, n: int) -> int:
39 def hex_to_int(val: str) -> int:
46 return int(val, 16)
51 def bound_mpi(val: int, bits_in_limb: int) -> int:
55 def bound_mpi_limbs(limbs: int, bits_in_limb: int) -> int:
60 def limbs_mpi(val: int, bits_in_limb: int) -> int:
69 def bits_to_limbs(bits: int, bits_in_limb: int) -> int:
74 def hex_digits_for_limb(limbs: int, bits_in_limb: int) -> int:
78 def hex_digits_max_int(val: str, bits_in_limb: int) -> int:
93 return "{:x}".format(int(target, 16)).zfill(target_len)
124 limb_sizes = [32, 64] # type: List[int]
129 def __init__(self, val_a: str, val_b: str = "0", bits_in_limb: int = 32) -> None:
132 # Setting the int versions here as opposed to making them @properties
144 def boundary(self) -> int:
152 def limb_boundary(self) -> int:
156 def limbs(self) -> int:
160 def hex_digits(self) -> int:
171 def format_result(self, res: int) -> str:
294 bits_in_limb: int = 64) -> None:
297 # Setting the int versions here as opposed to making them @properties
301 def to_montgomery(self, val: int) -> int:
304 def from_montgomery(self, val: int) -> int:
307 def convert_from_canonical(self, canonical: int,
308 rep: ModulusRepresentation) -> int:
319 def boundary(self) -> int:
341 def r(self) -> int: # pylint: disable=invalid-name
346 def r_inv(self) -> int:
350 def r2(self) -> int: # pylint: disable=invalid-name