A workable SM9 R-ate pairing over BN curve

This textbook version R-ate pairing is very slow. About 0.5 seconds on my Macbook Pro 2018 with 2.7 GHz Core i7.
This commit is contained in:
Zhi Guan
2018-09-21 22:42:11 +08:00
parent 9f4e184ac5
commit c7aa2cc1ff
6 changed files with 1457 additions and 415 deletions

View File

@@ -218,7 +218,5 @@ end:
int SM9_setup_by_pairing_name(int nid, int hid,
SM9PublicParameters **mpk, SM9MasterSecret **msk)
{
EC_GROUP *group = EC_GROUP_new_sm9s256t1();
return SM9_setup_type1curve(group, EVP_sm3(), mpk, msk);
return 0;
}