-
Notifications
You must be signed in to change notification settings - Fork 0
Mathematical_Formulation
This page explains the underlying math behind LAI.
For
where
Solve
-
Case
$$(p \equiv 3 \pmod 4)$$ :$$z = a^{\frac{p+1}{4}} \bmod p.$$ -
General Tonelli–Shanks (any odd prime):
Runs in$$(O(\log^2 p))$$ .
Given:
-
$$((x,y)\in \mathbb{F}_p^2)$$ , - parameter
$$(a)$$ , - seed index
$$(s)$$ ,
Define:
Thus,
To compute
function pow_T(P, k):
result ← P
base ← P
s ← 1
while k > 0:
if (k mod 2) == 1:
result ← T(result, s)
base ← T(base, s)
k ← k >> 1
s ← s + 1
return result
© 2025 pqcrypto. Maintained by the pqcrypto team.
- GitHub Repository
- Readme source:
README.md - If you have questions or suggestions, please open an issue or pull request on the repository.