jntass / TASSL

此仓库已停止维护,请移步https://github.com/jntass/TASSL-1.1.1
http://www.tass.com.cn
Other
291 stars 106 forks source link

错误的错误信息输出:pkey_ec_decrypt:sm2 decrypt error:ec_pmeth.c:893 #28

Closed liclicli closed 2 years ago

liclicli commented 6 years ago

@jntass
ec_pmeth.c:893处存在手误,导致解密无论成功与否都输出错误信息,怀疑遗漏解密结果判断;

    retval = sm2_decrypt(out, outlen, (const SM2ENC *)ec_enc, md, ctx->pkey->pkey.ec);
    {
        ECerr(EC_F_PKEY_SM2_DECRYPT, EC_R_SM2_DECRYPT);
    }
jntass commented 6 years ago

嗯,已经更正。感谢关注TASSL!