Giter VIP home page Giter VIP logo

Comments (5)

dfaranha avatar dfaranha commented on July 19, 2024

Oops, I made a mistake when pushing to the various branches. See if the latest commit solves it for you, as it should enable the KSS18 curve by default!

from relic.

adelapie avatar adelapie commented on July 19, 2024

Hi,

I still get the same error in the test for pc and in the benchmark, I'm not sure if this is normal.
I compile via the kss18-638 preset as:

$ /tmp/relic-target  ../relic/preset/x64-pbc-kss18-638.sh ../relic                                                                                                                    

[...]

Then:

 $ /tmp/relic-target/bin  ./test_pc                                                                                                                                                    

-- Tests for the PC module:
ERROR THROWN in relic_ep_curve.c:141

-- Curve K18-P638:

-- Group G_1:

** Utilities:

Testing if memory can be allocated...                                         [PASS]
Testing if comparison is consistent...                                        [PASS]
Testing if copy and comparison are consistent...                              [FAIL]
(at /tmp/relic/test/test_pc.c:101)
 $ /tmp/relic-target/bin  ./bench_pc                                                                                                                                                 1 ✘ 
-- RELIC 0.7.0 configuration:

** Allocation mode: AUTO

** Arithmetic backend: X64_ASM_10L

** Benchmarking options:
   Number of times: 10000

** Multiple precision module options:
   Precision: 1024 bits, 16 words
   Arithmetic method: COMBA;COMBA;MONTY;SLIDE;BASIC;BASIC

** Prime field module options:
   Prime size: 638 bits, 10 words
   Arithmetic method: INTEG;INTEG;INTEG;MONTY;LOWER;LOWER;SLIDE

** Prime field extension module options:
   Arithmetic method: INTEG;INTEG;LAZYR

** Prime elliptic curve module options:
   Arithmetic method: PROJC;LWNAF;COMBS;INTER

** Bilinear pairing module options:
   Arithmetic method: LAZYR;OATEP

** Binary field module options:
   Polynomial size: 283 bits, 5 words
   Arithmetic method: LODAH;QUICK;QUICK;QUICK;QUICK;QUICK;EXGCD;SLIDE;QUICK

** Binary elliptic curve module options:
   Arithmetic method: PROJC;LWNAF;COMBS;INTER

** Elliptic Curve Cryptography module options:
   Arithmetic method: PRIME

** Edwards Curve Cryptography module options:
   Arithmetic method: PROJC;LWNAF;COMBS;INTER

** Hash function module options:
   Chosen method: SH256


-- Benchmarks for the PC module:
ERROR THROWN in relic_ep_curve.c:141

I also run other tests this time, some seem to fail:

      /tmp/relic-target/bin  ./test_ep                                                                                                                                                    ✔ 

-- Tests for the EP module:
ERROR THROWN in relic_ep_curve.c:141

-- Curve K18-P638:

** Utilities:

Testing if memory can be allocated...                                         [PASS]
Testing if copy and comparison are consistent...                              [FAIL]
(at /tmp/relic/test/test_ep.c:94)
      /tmp/relic-target/bin  ./test_epx                                                                                                                                                 1 ✘ 

-- Tests for the EPX module
ERROR THROWN in relic_ep_curve.c:141

-- Curve K18-P638:

** Utilities:

Testing if memory can be allocated...                                         [PASS]
Testing if copy and comparison are consistent...                              [FAIL]
(at /tmp/relic/test/test_epx.c:1243)
      /tmp/relic-target/bin  ./test_pp                                                                                                                                                  1 ✘ 

-- Tests for the PP module
ERROR THROWN in relic_ep_curve.c:141

-- Curve K18-P638:

** Arithmetic

Testing if miller doubling is correct...                                      [FAIL]
(at /tmp/relic/test/test_pp.c:1403)

from relic.

dfaranha avatar dfaranha commented on July 19, 2024

You're right and there were other errors that I hope to have just fixed. Can you try again?

from relic.

adelapie avatar adelapie commented on July 19, 2024

Yes, it works now. Thanks a lot.

from relic.

dfaranha avatar dfaranha commented on July 19, 2024

You're welcome, sorry for the partial commit ruining things on your side!

from relic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.