RELIC has already supported the SM9 standard (the Chinese national cryptography standard for Identity Based Cryptography), but the pairing result is not consistent with the exmaple given in the SM9 standard. Therefore, I modified the final exponentiation part for SM9 and added pp_exp_sm9() to relic_pp_exp_k12.c, so that the pairing result is consitent.
Add support for SM2 standard (the Chinese national cryptography standard for elliptic curve based cryptography).
pp_exp_sm9()
torelic_pp_exp_k12.c
, so that the pairing result is consitent.