Commit Graph

74 Commits

Author SHA1 Message Date
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
cuihongpeng
eedbb6bb8e sm2: fix cv free error, in o2i_SM2CiphertextValue() function 2018-08-23 17:58:24 +08:00
Zhi Guan
86aa61c0b6 minor changes 2017-12-26 22:59:32 +08:00
Zhi Guan
f5a3f271a3 v2 pre-release 2017-12-07 23:58:48 +08:00
Zhi Guan
2458fcb879 speed sm2/3/4
`gmssl speed sm2 sm3 sms4`
2017-11-25 13:22:04 +08:00
Zhi Guan
27bde477a5 first step of v2 final release 2017-11-05 21:00:36 +08:00
[GGSuchao]
00c590e3a3 update sm_standard 2017-07-10 14:51:03 +08:00
[GGSuchao]
1f283cb9b3 update sm_standard 2017-07-10 14:51:03 +08:00
[GGSuchao]
fc04a3a8ab add sm2 2017-07-06 19:27:07 +08:00
[GGSuchao]
3daccb3fcc add sm2 2017-07-06 19:27:07 +08:00
[GGSuchao]
c175d92510 add sm2 2017-07-06 19:27:07 +08:00
[GGSuchao]
5522d60cc6 add sm2 2017-07-06 19:27:07 +08:00
[GGSuchao]
4ee6a52f59 add sm2 2017-07-06 19:27:07 +08:00
[GGSuchao]
a35f536e5a add sm2 2017-07-06 19:27:07 +08:00
[GGSuchao]
7f55f996cd add sm2 2017-07-06 19:27:07 +08:00
[GGSuchao]
96dc55edb1 add sm2 2017-07-06 19:27:07 +08:00
[GGSuchao]
931e9fe169 add sm2 2017-07-06 19:27:07 +08:00
[GGSuchao]
576bb64d83 add sm2 2017-07-06 19:27:07 +08:00
[GGSuchao]
f5160e945c add sm2 2017-07-06 19:27:07 +08:00
[GGSuchao]
faf32796f4 add sm2 2017-07-06 19:27:07 +08:00
[GGSuchao]
6a598cbdb8 add sm2_standard 2017-07-06 19:27:07 +08:00
zhaoxiaomeng
2159d0c5bc [crypto] fix sm2 malloc error 2017-06-28 13:25:14 +08:00
GGSuchao
d60b504e95 Update sm2_standard_sign.c 2017-06-25 22:26:27 +08:00
GGSuchao
f1c52f6390 Update sm2_standard_exch.c 2017-06-25 22:23:04 +08:00
GGSuchao
800c2bb1ee Create sm2_standard_sign.c 2017-06-25 18:58:51 +08:00
GGSuchao
0c10d63bfa Create sm2_standard_exch.c 2017-06-25 18:50:43 +08:00
GGSuchao
90ce70575d Create sm2_standard_enc.c 2017-06-25 18:39:30 +08:00
GGSuchao
bdb3842e69 Delete sm2_standard_sign.c 2017-06-25 17:12:09 +08:00
GGSuchao
41f64673d8 Delete sm2_standard_exch.c 2017-06-25 17:10:15 +08:00
GGSuchao
efd5b2c75e Delete sm2_standard_enc.c 2017-06-25 17:09:27 +08:00
GGSuchao
0e0943051c Update sm2_standard_exch.c 2017-06-25 02:36:13 +08:00
GGSuchao
92dcc69cce Update sm2_standard_exch.c 2017-06-25 02:13:14 +08:00
GGSuchao
056b1181f0 Update build.info 2017-06-25 02:06:47 +08:00
GGSuchao
716be6c30d Update build.info 2017-06-25 01:56:32 +08:00
GGSuchao
2112c22244 Update sm2_standard_sign.c 2017-06-25 01:30:26 +08:00
GGSuchao
e4c9fdc669 Update sm2_standard_exch.c 2017-06-25 01:30:08 +08:00
GGSuchao
80048b7424 Update sm2_standard_enc.c 2017-06-25 01:24:24 +08:00
GGSuchao
9377f9ad5d Create sm2_standard_sign.c 2017-06-24 17:10:04 +08:00
GGSuchao
a0b5f4c16c Create sm2_standard_exch.c 2017-06-24 17:00:17 +08:00
GGSuchao
1920090347 Create sm2_standard_enc.c 2017-06-24 16:51:44 +08:00
guanzhi
463db17a86 bug fix 2017-05-15 19:29:17 +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
3090de8951 paillier pen support
and some bug fixes
2017-03-16 12:33:31 +08:00
Zhi Guan
a5e23f6d85 update sm2 kmeth 2017-03-09 21:14:55 +08:00
Zhi Guan
002096751c update crypto 2017-03-08 15:02:42 +08:00
Zhi Guan
89574f6f95 update sm2 kmeth 2017-02-23 17:27:49 +08:00
Zhi Guan
d9ea57a8c0 update sm2 2017-02-22 18:22:47 +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