4 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
79e2936664 update 2017-05-15 17:23:26 +08:00
Zhi Guan
eb21e9d572 update 2017-04-14 15:31:38 +08:00