GmSSL
GmSSL copied to clipboard
支持国密SM2/SM3/SM4/SM9/SSL的密码工具箱
在使用x509命令生成自签证书时(具体命令如下),如果设置了startdate命令,但是生成的证书,仍然是当前系统时间 gmssl x509 -req -sm3 -days 3650 -CA RootCA.crt -CAkey demoCA/private/Root.key -CAcreateserial -in Medium.req -out MediumCA.crt -extfile /usr/local/ssl/openssl.cnf -exensions v3_req
idk 1.8 tomcat 8.5 tomcat中的应用也作为客户端连接zookeeper,与zookeeper进行双向认证。 ``` Caused by: java.io.IOException: Invalid keystore format at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:666) ~[na:1.8.0_312] at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:57) ~[na:1.8.0_312] at java.security.KeyStore.load(KeyStore.java:1445) ~[na:1.8.0_312] ```
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd...
命名空间建议
我们使用GMSSL做国密相关的功能时候,它与我们使用的openssl动态库(1.0.1D)的函数名冲突了。我们想尽量小范围的使用GMSSL的国密部分功能,其他原有功能使用openssl的。 现在这个问题的解决我想有三个: 1,GMSSL采用新的namespace。 2,全部用GMSSL替换我们现在使用的openssl。这样风险有点大,因为基础代码使用的老的openssl的动态库。 3,用dlopen/dlsym手工调用函数。这样会增加大很大的工作量,每个调用的库的函数都再做一次包装。 建议看下GMSSL是不是可以用namespace包装一下?
本来都做好半个轮子了,突然发现老大哥在这,哈哈哈哈,坐等web版本
ext/openssl/openssl.o: In function `php_openssl_get_evp_cipher_from_algo': /home/gmssl/php-7.4.28/ext/openssl/openssl.c:1452: undefined reference to `EVP_sms4_cbc' collect2: error: ld returned 1 exit status make: *** [Makefile:284:sapi/cli/php] 错误 1
**Describe the bug** SMS4-ECB 参数iv必须传,不然会挂掉。 SMS4-ECB 传递iv后,返回值为null。 **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem....
**想请教下zuc_eea.c里面ZUC_eea_encrypt函数的最后对于长度不到32字节的密文字的处理** 按照祖冲之加密算法规范中的示例,密文的最后一个字若长度不满32字节,似乎应将多余的位数全部置零?但GMSSL的ZUC_eea_encrypt函数却是将密文和一个多余位数置零,有效位数置1的数相或,此处是否应改为相与? **规范示例** [](url) **运行结果**  **Environments** - OS: [e.g. ubuntu16.04LTS x64] - Compiler: [e.g. gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609] **Additional context** Add any other context about the problem here.
目前在数据库自定义插件中需要使用gmssl提供的函数,我是以静态库的形式编译了gmssl,但是在调用的时候发现和系统中自带的openssl版本冲突(gmssl基于1.1.0d开发,环境中的是1.1.1版本),默认调用的也是openssl中的方法,请问大家这个问题怎么解决?