herumi / mcl

a portable and fast pairing-based cryptography library
BSD 3-Clause "New" or "Revised" License
450 stars 152 forks source link

What's the difference between Fp12::pow() and Fp12::powGeneric() #70

Closed HWJun94 closed 4 years ago

HWJun94 commented 4 years ago

I want to calculate s power of e(P1, P2), s <-- Fr, What should I do?

herumi commented 4 years ago

You can use Fp12::pow() for e(P1, P2) because the value is in r-th root of unity {x∈Fp12:x^r=1}.

HWJun94 commented 4 years ago

Thank you!