aboutsummaryrefslogtreecommitdiff
path: root/src/Specific/montgomery64_2e150m5/CurveParameters.v
blob: 7e817fdcbaaadf9a2c9b82093c5f4a6596025b8e (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
Require Import Crypto.Specific.Framework.RawCurveParameters.
Require Import Crypto.Util.LetIn.

(***
Modulus : 2^150 - 5
Base: 64
***)

Definition curve : CurveParameters :=
  {|
    sz := 2%nat;
    bitwidth := 64;
    s := 2^150;
    c := [(1, 5)];
    carry_chains := None;

    a24 := None;
    coef_div_modulus := None;

    goldilocks := Some false;
    montgomery := true;

    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.