duanhongyi / gmssl

a python crypto for sm2/sm3/sm4
MIT License
488 stars 141 forks source link

sm3_hash demo cant run #27

Closed miuchen closed 4 years ago

miuchen commented 4 years ago

from gmssl import sm3, func

if name == 'main': ... y = sm3.sm3_hash(func.bytes_to_list(b"abc")) ... print(y) ... Traceback (most recent call last): File "", line 2, in File "/usr/lib/python2.7/site-packages/gmssl/sm3.py", line 116, in sm3_hash for i in range(0, group_count): TypeError: range() integer end argument expected, got float

miuchen commented 4 years ago

it seams only work with python3