tpre-python/test.py
2023-10-12 19:49:50 +08:00

6 lines
158 B
Python

from gmssl import * #pylint: disable = e0401
sm3 = Sm3() #pylint: disable = e0602
sm3.update(b'abc')
dgst = sm3.digest()
print("sm3('abc') : " + dgst.hex())