64 Commits

Author SHA1 Message Date
Zhi Guan
5a000d0998 remove warnings 2020-06-19 15:56:33 +08:00
piggypiggy
211b34e7b9 sm2_bmi2_bugfix (#961) 2020-05-20 00:12:26 +08:00
Zhi Guan
74d7992dda Remove some ciphers 2019-06-13 20:35:11 +08:00
Zhi Guan
24f8a17c63 Update
remove ECRS, EC-Schnorr modules
2019-06-13 17:02:51 +08:00
Zhi Guan
5b90476864 Add new EC/SM2 API 2019-02-28 17:49:37 +08:00
Zhi Guan
bf4c6920d9 Update BN and EC module 2019-02-24 06:15:22 +01:00
Zhi Guan
258e44ea89 Add S/MIME support with SM algorithms 2019-02-13 22:03:23 +08:00
Zhi Guan
d114bed3f8 Fix sm2utl bugs 2019-02-02 20:44:51 +08:00
Zhi Guan
7d5c18379f Update SM2 methods
The default `./config` will enable the X86_64 ASM implementation of SM2. Use `./config -DGMSSL_NO_TURBO enable-ec_nistp_64_gcc_128` will enable the fast C implementation of SM2. The  `./config -DGMSSL_NO_TURBO` will use the original implementation.
2019-01-26 17:26:03 +08:00
Zhi Guan
5359dd5534 Update SKF 2019-01-23 09:13:30 +08:00
Zhi Guan
4bab277911 Update sm2 and zuc 2019-01-12 11:56:06 +08:00
Zhi Guan
8f54e70ada Add sdf and skf options 2019-01-02 21:09:41 +08:00
Zhi Guan
62d385ab71 Bug fix 2018-12-19 12:21:42 +08:00
Zhi Guan
3e3cc9d4a7 Update ec lib 2018-12-19 12:09:23 +08:00
Zhi Guan
74a729aa77 Add sm2 and otp command
try `gmssl sm2 -help` and `gmssl otp -help`
2018-12-19 10:01:38 +08:00
Zhi Guan
c0ee87b077 Update SM9 EVP 2018-12-03 17:15:57 +08:00
Zhi Guan
e7dc7b2656 Fix sm2 asm build errors on x86 2018-11-21 16:35:50 +08:00
Zhi Guan
e789127a9a Add SM9 BN curve sm9bn256v1 over GF(p)
The recommended BN curve over 256 -bit prime field. The OID of the curve might be modified in the future.
2018-09-13 15:58:53 +08:00
Zhi Guan
4b17502fdd Optimize sm2p256v1 curve for Intel processors
This update is part of the GmSSL Turbo project.
This work is supported by the National Key Research and Development
Program of China NO.2018YFB0803601 and Intel.
2018-09-07 08:55:36 +08:00
Zhi Guan
4b825edf3c Add some debug info 2018-03-13 12:26:17 +08:00
Zhi Guan
755814db52 Fix SM2 certificate verification
Set the default ec_scheme to secg_scheme, add sm3 ZID to X.509
verification.
2018-01-11 23:37:28 +08:00
Simon
38395c5c80 Revert "quantum init"
This reverts commit 53af3b51ae.
2018-01-04 14:03:38 +08:00
zhaoxiaomeng
53af3b51ae quantum init 2018-01-04 13:40:59 +08:00
Zhi Guan
a9b31e17a5 wrap optional headers with OPENSSL_NO_ macro 2017-12-26 22:51:47 +08:00
Zhi Guan
f5a3f271a3 v2 pre-release 2017-12-07 23:58:48 +08:00
Zhi Guan
a4e6eea2fa tls12 with sm2 cert 2017-12-01 20:28:39 +08:00
Simon
d249929e81 [bugfix]fix double free bug 2017-11-28 17:12:43 +08:00
Zhi Guan
27bde477a5 first step of v2 final release 2017-11-05 21:00:36 +08:00
Zhi Guan
79e2936664 update 2017-05-15 17:23:26 +08:00
Zhi Guan
eb21e9d572 update 2017-04-14 15:31:38 +08:00
Zhi Guan
002096751c update crypto 2017-03-08 15:02:42 +08:00
Zhi Guan
9ae79dee03 update ec and sm2 kmeth 2017-02-23 17:27:07 +08:00
Zhi Guan
d9ea57a8c0 update sm2 2017-02-22 18:22:47 +08:00
Zhi Guan
5be4ebb4c0 add encrypt/decrypt to ec_key_method 2017-02-21 09:25:05 +08:00
Zhi Guan
28145d1e48 bug fix 2017-02-19 23:48:01 +08:00
Zhi Guan
046a5b2104 update ec
ec_kmeth and strict signature
2017-02-19 23:42:38 +08:00
Zhi Guan
dcdb3dd1d6 fix some bugs
config no-saf no-sdf no-skf no-sof no-zuc
2017-02-16 17:10:35 +08:00
Zhi Guan
91873b8da0 update evp/ec 2017-02-16 12:02:25 +08:00
Zhi Guan
5d5ea22fa7 add extra ec 2017-02-15 16:08:27 +08:00
Zhi Guan
15c9033ac1 add curves
test:

gmssl ecparam -name sm2p256v1  -param_enc explicit -noout -text
gmssl ecparam -name wapip192v1 -param_enc explicit -noout -text
2017-02-15 14:38:41 +08:00
Zhi Guan
0d7a103151 add ec
code need some updates
2017-02-15 14:27:41 +08:00
Zhi Guan
83321f9755 add ecies
ECIES share the same err num with EC
2017-02-15 00:03:52 +08:00
Zhi Guan
43fed1108d Merge remote-tracking branch 'origin/master'
# Conflicts:
#	README.md
2017-02-14 16:13:11 +08:00
Zhi Guan
a5b727c47b bug fix
err, cbcmac
2017-01-16 08:40:11 +08:00
Zhi Guan
09f054b2f2 Support VC-WIN32 2016-07-04 13:03:03 +02:00
Zhi Guan
2cb43b7f80 jni api 2016-06-06 22:04:44 +02:00
Zhi Guan
2bf25bd29f Bug fix
Thanks to github.com/Jkinglyf
2016-05-30 12:50:06 +02:00
Zhi Guan
ee4384daeb SKF Wrapper 2016-05-29 00:22:33 +02:00
Zhi Guan
0cf9126a7d more sm. tests 2016-05-22 20:42:38 +02:00
Zhi Guan
60d14da0cc add CBC-MAC and GM OTP, not tested 2016-05-15 20:21:51 +02:00