herumi / mcl

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

Question about BN-381-1 and BN-381-2 #23

Closed NickyYangYang closed 5 years ago

NickyYangYang commented 6 years ago

Hi, You support two 381 bits BN curve : N-381-1 and BN-381-2. The first one is a A Family of Implementation-Friendly BN Elliptic Curves, the second one is used in relic-toolkit. Then , are they both security? And , is there other difference except their params. And which one is more faster?

herumi commented 6 years ago

The security level of these parameter is almost same. BN381-1 is a little(5%) faster than BN381-2.