Giter VIP home page Giter VIP logo

Comments (5)

YWRtaW4 avatar YWRtaW4 commented on July 19, 2024

I know little about symmetric pairing, and I try with pp_map_weilp_k2() and pp_map_tatep_k2(). It seems that the Weil pairing is symmetric while the Tate pairing is asymmetric. As far as I know, asymmetirc pairings such as the Optimal Ate pairing are defined on the 12-th extension field, but the output of Weil or Tate pairing is fp2_t. Could you please explain to me why Weil/Tate pairings are defined on the 2-th extension field in the case of symmetric? Please correct me if I misunderstand. And does that mean I can achieve the 128-bit security level with FP_PRIME=256 in pp_map_weilp_k2()?

from relic.

YWRtaW4 avatar YWRtaW4 commented on July 19, 2024

I run e(aP,Q)e(bP,Q) with pp_map_weilp_k2() under BN_P256 curve, and it turns out that the result is not equal to e(aP+b*P,Q) which should be equal according to the bilinearity of pairings.

And the cmake that I use is cmake -DWSIZE=64 -DCHECK=off -DVERBS=off -DARITH=gmp -DFP_PRIME=256 -DFP_METHD="INTEG;INTEG;INTEG;MONTY;LOWER;LOWER;SLIDE" -DCFLAGS="-O3 -funroll-loops -fomit-frame-pointer -finline-small-functions -march=native -mtune=native" -DFP_PMERS=off -DFP_QNRES=on -DMD_METHD=SH256 -DEP_ENDOM=on -DEP_PLAIN=off -DFPX_METHD="INTEG;INTEG;LAZYR" -DPP_METHD="LAZYR;WEILP" $1

from relic.

YWRtaW4 avatar YWRtaW4 commented on July 19, 2024

I've fixed my problem.

from relic.

dfaranha avatar dfaranha commented on July 19, 2024

Hi, I'm late to the game, but you should use FP_PRIME=1536 to access the Type-1 pairing implementation contained in RELIC.

from relic.

YWRtaW4 avatar YWRtaW4 commented on July 19, 2024

Yes, I've done as you said and got the desired result. Thank you for your reply! And RELIC is fantanstic! :)

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.