Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Cocks-Pinch variant
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
MASSON Simon
Cocks-Pinch variant
Commits
11aa843e
Commit
11aa843e
authored
Sep 06, 2019
by
Emmanuel Thomé
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.inria.fr:smasson/cocks-pinch-variant
parents
f78d560e
a9092423
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
CocksPinchVariant.py
CocksPinchVariant.py
+3
-0
cost_pairing.py
cost_pairing.py
+8
-8
No files found.
CocksPinchVariant.py
View file @
11aa843e
...
...
@@ -505,7 +505,10 @@ class CocksPinchVariantResult(object):
"""
def
__init__
(
self
,
k
,
D
,
T
,
i
,
ht
=
Integer
(
0
),
hy
=
Integer
(
0
),
max_poly_coeff
=
None
,
pre
=
False
,
l
=
1
,
allowed_cofactor
=
1
,
allowed_size_cofactor
=
5
,
max_trialdiv
=
10
**
6
,
max_B1
=
10
**
4
,
new_semantics
=
False
):
=======
def
__init__
(
self
,
k
,
D
,
T
,
i
,
ht
=
Integer
(
0
),
hy
=
Integer
(
0
),
max_poly_coeff
=
0
,
pre
=
False
,
l
=
1
,
allowed_cofactor
=
1
,
allowed_size_cofactor
=
5
,
max_trialdiv
=
10
**
6
,
max_B1
=
10
**
4
,
new_semantics
=
False
):
>>>>>>>
107
d412592d84ec5619ec671ff8231cbcde4d52c
kl
=
k
*
l
fD
=
-
fundamental_discriminant
(
-
D
)
...
...
cost_pairing.py
View file @
11aa843e
...
...
@@ -186,21 +186,21 @@ def finite_field_cost(logp):
#time_m
words
=
ceil
(
RR
(
logp
)
/
64
)
if
words
==
5
:
time_m
=
35
#relic benchmark
time_m
=
35
#
relic benchmark
if
words
==
6
:
time_m
=
6
9
#
relic benchmark
time_m
=
6
5
#
relic benchmark
if
words
==
7
:
time_m
=
94
#relic benchmark commit 307bc1f17410c36f6bd93d2a1f5c419270cf9ebd
time_m
=
85
# relic benchmark
if
words
==
8
:
time_m
=
1
20
#relic benchmark, more close to 123
time_m
=
1
06
# relic benchmark
elif
words
==
9
:
time_m
=
1
.9
*
9
**
2
time_m
=
1
29
# relic benchmark
elif
words
==
10
:
time_m
=
1
88
#
relic benchmark
time_m
=
1
54
#
relic benchmark
elif
words
==
11
:
time_m
=
1.
9
*
11
**
2
time_m
=
1.
5
*
11
**
2
elif
words
==
48
:
time_m
=
4882
#gmp benchmark
time_m
=
4882
#
gmp benchmark
return
time_m
def
is_one_of_our_known_pairing_friendly_curves
(
C
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment