duanhongyi / gmssl

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

test_sm3.py #3

Closed theThreeKingdom closed 4 years ago

theThreeKingdom commented 6 years ago

where is str_to_list()?

duanhongyi commented 6 years ago

sorry, I think he should be bytes_to_list .

DanXL commented 5 years ago

bytes_to_list still failed with error.

whyshrha commented 4 years ago

测试sm3 $sm3.sm3_hash('abc') 会报错 AttributeError: 'str' object has no attribute 'append'

romanzsh commented 4 years ago

先用bytes.fromhex(),再用func.bytes_to_list,即可。需要先import func

Sent from my iPhone

On May 11, 2020, at 22:15, Haoyu Wu notifications@github.com wrote:



测试sm3 $sm3.sm3_hash('abc') 会报错 AttributeError: 'str' object has no attribute 'append'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fduanhongyi%2Fgmssl%2Fissues%2F3%23issuecomment-626728474&data=02%7C01%7C%7Cb177a63ace324c3b26a908d7f5b5d1f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248033562528547&sdata=%2FEb4COZTvAJLlK2lSOjWXwe2Um97BL8FvqO6BAX29Jk%3D&reserved=0, or unsubscribehttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAE2DX2FLV4BXOREI3VM7AXLRRACBVANCNFSM4GEXXN2Q&data=02%7C01%7C%7Cb177a63ace324c3b26a908d7f5b5d1f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637248033562538541&sdata=wn8kCONq2MFRP03L21TRCURj%2BXBFNVCiIfXn7Anev%2BE%3D&reserved=0.