GmSSL-Python icon indicating copy to clipboard operation
GmSSL-Python copied to clipboard

Python binding to the GmSSL library

Results 19 GmSSL-Python issues
Sort by recently updated
recently updated
newest added

已经安装gmssl,cmd可使用,但写代码时仍提示找不到动态库

下载并解压源代码后,执行python3 -m unittest -v进行测试时,其他算法运行结果都是ok,只有test_sm9_enc显示segmentation fault,请问老师是源码的问题吗还是我的虚拟机内存不够 ![image](https://github.com/GmSSL/GmSSL-Python/assets/103975853/6c51240f-800e-4083-a126-ce1315992263)

如下图所示,想测试sm2的加解密时,发现在ciphertext = sm2.encrypt(data)这一行时,终端会输出很多过程信息。 ![image](https://github.com/GmSSL/GmSSL-Python/assets/73375688/ed58569f-ddf8-4163-be49-f014e7f172a8)

python下导出主密钥报OSError: exception: access violation writing 0x0000000000000024‘; ![image](https://github.com/GmSSL/GmSSL-Python/assets/46039020/6680bc5c-41fd-4f18-83f2-6895d72f0611) 请问该如何解决?

开发者您好,我电脑win11 64位系统,python版本是3.12.0 已经正确安装gmssl和gmssl-python如下: ``` >>> import gmssl >>> gmssl.GMSSL_PYTHON_VERSION '2.2.2' >>> gmssl.GMSSL_LIBRARY_VERSION 'GmSSL 3.1.1 Dev' ``` 我在测试example文件夹下的例程时,sm3.py和sm4.py运行正常,sm2_key.py运行时报错如下: ``` File "C:\Users\admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\gmssl.py", line 436, in export_encrypted_private_key_info_pem if gmssl.sm2_private_key_info_encrypt_to_pem(byref(self), c_char_p(passwd), c_void_p(fp)) != 1:...

修复安装命令

![image](https://github.com/GmSSL/GmSSL-Python/assets/116268280/b6781611-c410-49c2-8d04-a8a4b424885e) ![image](https://github.com/GmSSL/GmSSL-Python/assets/116268280/46bd5b09-0f01-4c10-9c80-35eaa286d5c6) ![image](https://github.com/GmSSL/GmSSL-Python/assets/116268280/825d29dc-a627-4d80-a849-bff427faa19b) ![image](https://github.com/GmSSL/GmSSL-Python/assets/116268280/7c0d58c1-4bdc-48f2-871d-95342d2c8101)

运行时报下面的错误:FileNotFoundError: Could not find module 'C:\Program Files\GmSSL 3.1.1\bin\gmssl.dll' (or one of its dependencies). Try using the full path with constructor syntax. 在控制台能够正常import: ![image](https://github.com/GmSSL/GmSSL-Python/assets/88446779/451d31b1-6e53-4f97-a7cc-dd38ff0e1990)