Title: SM2相关example例程运行报错 · Issue #8 · GmSSL/GmSSL-Python · GitHub
Open Graph Title: SM2相关example例程运行报错 · Issue #8 · GmSSL/GmSSL-Python
X Title: SM2相关example例程运行报错 · Issue #8 · GmSSL/GmSSL-Python
Description: 开发者您好,我电脑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:\...
Open Graph Description: 开发者您好,我电脑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...
X Description: 开发者您好,我电脑win11 64位系统,python版本是3.12.0 已经正确安装gmssl和gmssl-python如下: >>> import gmssl >>> gmssl.GMSSL_PYTHON_VERSION '2.2.2' >>> gmssl.GMSSL_LIBRARY_VERSION 'GmSS...
Opengraph URL: https://github.com/GmSSL/GmSSL-Python/issues/8
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SM2相关example例程运行报错","articleBody":"开发者您好,我电脑win11 64位系统,python版本是3.12.0\r\n已经正确安装gmssl和gmssl-python如下:\r\n```\r\n\u003e\u003e\u003e import gmssl\r\n\u003e\u003e\u003e gmssl.GMSSL_PYTHON_VERSION\r\n'2.2.2'\r\n\u003e\u003e\u003e gmssl.GMSSL_LIBRARY_VERSION\r\n'GmSSL 3.1.1 Dev'\r\n```\r\n我在测试example文件夹下的例程时,sm3.py和sm4.py运行正常,sm2_key.py运行时报错如下:\r\n```\r\nFile \"C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\gmssl.py\", line 436, in export_encrypted_private_key_info_pem\r\n if gmssl.sm2_private_key_info_encrypt_to_pem(byref(self), c_char_p(passwd), c_void_p(fp)) != 1:\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nOSError: exception: access violation writing 0x0000000000000024\r\n```\r\n在网上搜索该错误一直没找到解决办法,特在此提问,烦请进行解答,感谢","author":{"url":"https://github.com/zhangyongann","@type":"Person","name":"zhangyongann"},"datePublished":"2023-10-20T00:42:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/8/GmSSL-Python/issues/8"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0b4847ea-5761-8b9e-6b8e-4b9a5eaee9ff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7DA:256B54:2FB4D8:3D00F9:69901A0E |
| html-safe-nonce | 2ff19908956af8c8fe0cea0c1287ad65852b77cdc0fa15ac163e583a11489a68 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0RBOjI1NkI1NDoyRkI0RDg6M0QwMEY5OjY5OTAxQTBFIiwidmlzaXRvcl9pZCI6IjU4ODM4MTg4MjE3NTY2NTYxNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 16c828161d01ad39fb649b389d093ee7e2c296cd360421f8fdf7bda49ea84c52 |
| hovercard-subject-tag | issue:1953280353 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GmSSL/GmSSL-Python/8/issue_layout |
| twitter:image | https://opengraph.githubassets.com/37b295395db3e28eedc9c0ef04c6a1aa9c0e4a85d954c22b22a9ea44afd29ab7/GmSSL/GmSSL-Python/issues/8 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/37b295395db3e28eedc9c0ef04c6a1aa9c0e4a85d954c22b22a9ea44afd29ab7/GmSSL/GmSSL-Python/issues/8 |
| og:image:alt | 开发者您好,我电脑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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zhangyongann |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/GmSSL/GmSSL-Python git https://github.com/GmSSL/GmSSL-Python.git |
| octolytics-dimension-user_id | 19409030 |
| octolytics-dimension-user_login | GmSSL |
| octolytics-dimension-repository_id | 609082257 |
| octolytics-dimension-repository_nwo | GmSSL/GmSSL-Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 609082257 |
| octolytics-dimension-repository_network_root_nwo | GmSSL/GmSSL-Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width