GmSSL-Python
GmSSL-Python copied to clipboard
Python binding to the GmSSL library
已经安装gmssl,cmd可使用,但写代码时仍提示找不到动态库
下载并解压源代码后,执行python3 -m unittest -v进行测试时,其他算法运行结果都是ok,只有test_sm9_enc显示segmentation fault,请问老师是源码的问题吗还是我的虚拟机内存不够 
如下图所示,想测试sm2的加解密时,发现在ciphertext = sm2.encrypt(data)这一行时,终端会输出很多过程信息。 
python下导出主密钥报OSError: exception: access violation writing 0x0000000000000024‘;  请问该如何解决?
开发者您好,我电脑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:...
修复安装命令
   
运行时报下面的错误: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: 