duanhongyi / gmssl

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

SM2模块get_e方法公钥切片问题 #25

Closed renpan1986 closed 4 years ago

renpan1986 commented 4 years ago

def get_e(self, msg): ''' xa = self.public_key[:32] ya = self.public_key[32:] '''' 上面的切片应该用64而不是32,公钥是64字节128位。 但是不影响最后的计算结果