Comments (5)
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.
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.
I've fixed my problem.
from relic.
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.
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)
- RISCV64 Support HOT 1
- How to convert a fp12_t value into bn_t HOT 6
- Error thrown in Optimal Ate Pairing HOT 2
- bench_rand.c not compiling with RAND=CALL HOT 1
- Error in the KSS-18-638 curve initialization function HOT 5
- Unable to install presets on M1 chip arm64 HOT 3
- Error in ep_param_set() HOT 8
- can not deduce the macro WSIZE on Apple M2 HOT 4
- BLS signatures with point compression HOT 2
- Want to use BN_254 curve HOT 1
- Build failure since recent commit HOT 1
- Compile failure on recent master HOT 4
- Compiling on M1 Mac HOT 1
- Compile Failue with x64-ecc-128 preset HOT 3
- cmake error the target not found HOT 2
- Homegaming HOT 1
- Leak the Secret Key of BBS Short Signature in Relic via Rowhammer HOT 4
- /demo/ers-etrs code running error HOT 3
- `bn_gcd_ext_binar` returns different Bezout coefficients HOT 2
- Problem while compiling HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from relic.