Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

苹果Mac OS下使用gmssl_sm2_encrypt and gmssl_sm2_decrypt 测试失败 #4

Open
heyangfan opened this issue Jul 19, 2023 · 0 comments

Comments

@heyangfan
Copy link

heyangfan commented Jul 19, 2023

gmssl version:3.1.0
mac os: 12.6.7
php version :8.1.12
在使用gmssl_sm2_encrypt方法以及gmssl_sm2_decrypt均失败。
直接在命令行使用gmssl sm2encrypt与decrypt未发现问题。

=====================================================================
PHP : /usr/local/Cellar/php/8.1.12/bin/php
PHP_SAPI : cli
PHP_VERSION : 8.1.12
ZEND_VERSION: 4.1.12
PHP_OS : Darwin - Darwin heyangfandeMacBook-Pro.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Jun 8 23:57:12 PDT 2023; root:xnu-8020.240.18.701.6~1/RELEASE_X86_64 x86_64
INI actual : /Users/heyangfan/Downloads/GmSSL-PHP-main/tmp-php.ini
More .INIs :

PHP : /usr/local/Cellar/php/8.1.12/bin/php-cgi
PHP_SAPI : cgi-fcgi
PHP_VERSION : 8.1.12
ZEND_VERSION: 4.1.12
PHP_OS : Darwin - Darwin heyangfandeMacBook-Pro.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Jun 8 23:57:12 PDT 2023; root:xnu-8020.240.18.701.6~1/RELEASE_X86_64 x86_64
INI actual : /Users/heyangfan/Downloads/GmSSL-PHP-main/tmp-php.ini
More .INIs :


PHP : /usr/local/Cellar/php/8.1.12/bin/phpdbg
PHP_SAPI : phpdbg
PHP_VERSION : 8.1.12
ZEND_VERSION: 4.1.12
PHP_OS : Darwin - Darwin heyangfandeMacBook-Pro.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Jun 8 23:57:12 PDT 2023; root:xnu-8020.240.18.701.6~1/RELEASE_X86_64 x86_64
INI actual : /Users/heyangfan/Downloads/GmSSL-PHP-main/tmp-php.ini
More .INIs :

CWD : /Users/heyangfan/Downloads/GmSSL-PHP-main
Extra dirs :
VALGRIND : Not used

TIME START 2023-07-19 05:57:55

PASS Check if gmssl is loaded [tests/cert.phpt]
PASS Check if gmssl is loaded [tests/consts.phpt]
PASS Check if gmssl is loaded [tests/rand_bytes.phpt]
FAIL Check if gmssl is loaded [tests/sm2.phpt]
PASS Check if gmssl is loaded [tests/sm3.phpt]
PASS Check if gmssl is loaded [tests/sm3_hmac.phpt]
PASS Check if gmssl is loaded [tests/sm3_pbkdf2.phpt]
PASS Check if gmssl is loaded [tests/sm4.phpt]
PASS Check if gmssl is loaded [tests/sm4_cbc.phpt]
PASS Check if gmssl is loaded [tests/sm4_ctr.phpt]
FAIL Check if gmssl is loaded [tests/sm4_gcm.phpt]
PASS Check if gmssl is loaded [tests/sm9_enc.phpt]
PASS Check if gmssl is loaded [tests/sm9_sign.phpt]
PASS Check if gmssl is loaded [tests/zuc.phpt]

TIME END 2023-07-19 05:58:00

=====================================================================
TEST RESULT SUMMARY

Exts skipped : 0
Exts tested : 63

Number of tests : 14 14
Tests skipped : 0 ( 0.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 2 ( 14.3%) ( 14.3%)
Tests passed : 12 ( 85.7%) ( 85.7%)

Time taken : 5 seconds

=====================================================================
FAILED TEST SUMMARY

Check if gmssl is loaded [tests/sm2.phpt]
Check if gmssl is loaded [tests/sm4_gcm.phpt]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant