
From: Zhiqi Song <songzhiqi1@huawei.com> There will be memory allocation in OpenSSL mod_exp methods, these resources need to be released by rsa_ossl_finish(), so add the rsa finish method by RSA_meth_set_finish(). Signed-off-by: Zhiqi Song <songzhiqi1@huawei.com> --- src/uadk_rsa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uadk_rsa.c b/src/uadk_rsa.c index 445b51b..76678a4 100644 --- a/src/uadk_rsa.c +++ b/src/uadk_rsa.c @@ -1909,6 +1909,8 @@ static RSA_METHOD *uadk_e_get_rsa_methods(void) RSA_PKCS1_OpenSSL())); (void)RSA_meth_set_mod_exp(rsa_hw_meth, RSA_meth_get_mod_exp( RSA_PKCS1_OpenSSL())); + (void)RSA_meth_set_finish(rsa_hw_meth, RSA_meth_get_finish( + RSA_PKCS1_OpenSSL())); return rsa_hw_meth; } -- 2.33.0