aboutsummaryrefslogtreecommitdiff
path: root/src/Specific/solinas64_2e382m105/CurveParameters.v
blob: d74c845f81a1fa53d6b0ec8fb87ef05cd42db8ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Require Import Crypto.Specific.Framework.RawCurveParameters.
Require Import Crypto.Util.LetIn.

(***
Modulus : 2^382 - 105
Base: 38.2
***)

Definition curve : CurveParameters :=
  {|
    sz := 10%nat;
    base := 38 + 1/5;
    bitwidth := 64;
    s := 2^382;
    c := [(1, 105)];
    carry_chains := Some [seq 0 (pred 10); [0; 1]]%nat;

    a24 := None;
    coef_div_modulus := Some 2%nat;

    goldilocks := Some false;
    montgomery := false;

    mul_code := None;

    square_code := None;

    upper_bound_of_exponent := None;
    allowable_bit_widths := None;
    freeze_extra_allowable_bit_widths := None;
    modinv_fuel := None
  |}.

Ltac extra_prove_mul_eq _ := idtac.
Ltac extra_prove_square_eq _ := idtac.