Commit Graph

279 Commits

Author SHA1 Message Date
Gorachya
1d0b3aeea8 Merge pull request #4 from guanzhi/master
update from master
2019-03-13 14:40:42 +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
fb47201b7e Add ECRS module 2019-02-17 18:48:33 +08:00
Zhi Guan
258e44ea89 Add S/MIME support with SM algorithms 2019-02-13 22:03:23 +08:00
Gorachya
b5a3bbba66 simplified 2019-02-10 00:36:49 -08:00
Zhi Guan
7fb6f48802 Merge pull request #694 from Gorachya/master
final-expo流程调整
2019-02-10 13:11:32 +08:00
Gorachya
69131474f0 moreupdate 2019-02-09 04:39:08 -08:00
Zhi Guan
9204b47c8e Merge pull request #693 from Gorachya/master
Tests passed
2019-02-03 14:54:33 +08:00
Gorachya
43315ff95d params-modified 2019-02-02 20:55:42 -08:00
Gorachya
54a4d1b9aa modify-sm9 2019-02-02 20:24:54 -08:00
Zhi Guan
d114bed3f8 Fix sm2utl bugs 2019-02-02 20:44:51 +08:00
Zhi Guan
22027d6656 Add paillier homomorphic encryption command
See http://gmssl.org/docs/paillier.md
2019-02-01 23:49:16 +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
674cada9bc Merge pull request #676 from ZZMarquis/patch-4
fix the incorrect pexp index
2019-01-23 19:02:43 +08:00
Zhi Guan
770f6f594f Merge pull request #675 from ZZMarquis/patch-3
fix the incorrect free
2019-01-23 19:01:47 +08:00
Zhi Guan
a58a817e9c Bug fix 2019-01-23 09:50:13 +08:00
Zhi Guan
3b531349db Merge branch 'master' of https://github.com/guanzhi/GmSSL 2019-01-23 09:13:38 +08:00
Zhi Guan
5359dd5534 Update SKF 2019-01-23 09:13:30 +08:00
ZZMarquis
b3586a2826 fix the incorrect pexp index
fix the incorrect pexp index
2019-01-16 10:38:23 +08:00
ZZMarquis
208e00bfa1 fix the incorrect free
fix the incorrect free
2019-01-16 10:32:25 +08:00
ZZMarquis
ac773035b6 remove the repetitive validation of cv->hash
remove the repetitive validation of cv->hash
2019-01-15 10:20:29 +08:00
Zhi Guan
4bab277911 Update sm2 and zuc 2019-01-12 11:56:06 +08:00
Zhi Guan
3dfae969d9 Update skf_ext.c 2019-01-10 21:11:09 +08:00
Zhi Guan
ce51a66c04 Merge branch 'master' of https://github.com/guanzhi/GmSSL 2019-01-10 21:06:12 +08:00
Zhi Guan
6f9620d24b Update sdf and skf commands 2019-01-10 21:06:07 +08:00
Zhi Guan
203f9f429c Merge pull request #658 from ZZMarquis/patch-2
maybe memory leak
2019-01-04 22:16:24 +08:00
Zhi Guan
8f54e70ada Add sdf and skf options 2019-01-02 21:09:41 +08:00
ZZMarquis
1ed3bc248c maybe memory leak
maybe memory leak
2018-12-28 16:10:58 +08:00
Zhi Guan
20b6f25562 Bug fix 2018-12-25 15:10:26 +08:00
Zhi Guan
786d6f0205 Add sm2utl and sm9utl commands 2018-12-25 14:49:12 +08:00
Soraba Shrine de Gorachya
907d5e92d0 fast-final-expo 2018-12-19 00:17:30 -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
Yiming Jing
ece7d87413 Add ECDHE-SM2-WITH-SMS4-GCM-SM3 2018-12-11 18:51:32 -08:00
Zhi Guan
1c00e47681 Update sm9 functions 2018-12-07 16:32:12 +08:00
Zhi Guan
6f5b7a4c96 Merge branch 'master' of https://github.com/guanzhi/GmSSL 2018-12-06 22:12:10 +08:00
Zhi Guan
9b5eaab86a some bug fix 2018-12-06 22:12:05 +08:00
Zhi Guan
5a40547c0b Merge pull request #627 from ZZMarquis/patch-1
remove unused code
2018-12-04 22:45:24 +08:00
Zhi Guan
bc2bb8a335 Add accurate asn.1 siganture/ciphertext size 2018-12-04 15:56:21 +08:00
Zhi Guan
c0ee87b077 Update SM9 EVP 2018-12-03 17:15:57 +08:00
ZZMarquis
d26c35538e remove unused code
remove unused code
2018-12-03 15:26:39 +08:00
Zhi Guan
5f3bb5c346 update pmeth/ameth 2018-11-28 16:15:06 +08:00
Zhi Guan
9fe7aa1280 Merge pull request #539 from ZZMarquis/patch-2
[bugfix] EC_KEY_set_ECCrefPublicKey转换过程中未处理字节数组偏移
2018-11-26 17:05:41 +08:00
Simon
d4768d2594 Update gmapi_skf_ec.c 2018-11-24 20:34:02 +08:00
Simon
339c2a0bb2 Update gmapi_skf_ec.c 2018-11-24 20:22:34 +08:00
Feng Jie
38201e1161 Fix unnecessary free in o2i_SM2CiphertextValue
The caller will crash when using the return value from
o2i_SM2CiphertextValue. Because the returned pointer to SM2CiphertextValue has been free,
regardless of success or failure in this method.

When assign cv to ret, cv should be set NULL just like the behaviour in
SM2_do_encrypt.
2018-11-24 20:09:02 +08:00
Simon
40b6623427 Update gmapi_skf_ec.c 2018-11-24 20:05:13 +08:00
Zhi Guan
e7dc7b2656 Fix sm2 asm build errors on x86 2018-11-21 16:35:50 +08:00