plexcryptool/plexcryptool/math.pyi

11 lines
268 B
Python
Raw Normal View History

2023-05-06 16:00:21 +02:00
"""
Some basic math functionalities
"""
def modular_exponentiation(base: int, exp: int, field: int) -> int:
"""
calculates base^exp in the gallois given gallois field
Uses iterative squaring to be able to calculate large exponents aswell.
"""
...