duanhongyi / gmssl

a python crypto for sm2/sm3/sm4
MIT License
485 stars 140 forks source link

SM2 point operation has problem? #39

Open lmaxeniro opened 3 years ago

lmaxeniro commented 3 years ago

SM2._kg(self, k, Point): # kP运算 This function may have problem, given k = B9AB0B828FF68872F21A837FC303668428DEA11DCD1B24429D0C99E24EED83D5, Point = g (base point), the calculated result shall be equal to publick key = B9C9A6E04E9C91F7BA880429273747D7EF5DDEB0BB2FF6317EB00BEF331A83081A6994B8993F3F5D6EADDDB81872266C87C018FB4162F5AF347B483E24620207

But what I got is d615493fd355040f476d6dcebe198e7018a322df6b908c94601b2c237e7b46aea41945208f8f0cfacdfbea5e47fa0c08a686cf0dc362fab3a82ef8062b85b027