aboutsummaryrefslogtreecommitdiff
path: root/src/Specific/X25519/C32/fesquare.v
blob: 3fa837bd2aa4fe935e194685779e58054a2caaa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Require Import Crypto.Arithmetic.PrimeFieldTheorems.
Require Import Crypto.Specific.X25519.C32.Synthesis.

(* TODO : change this to field once field isomorphism happens *)
Definition square :
  { square : feBW -> feBW
  | forall a, phiBW (square a) = F.mul (phiBW a) (phiBW a) }.
Proof.
  Set Ltac Profiling.
  Time synthesize_square ().
  Show Ltac Profile.
Time Defined.