From d131062440d2777f5676c50352e74009d23659f1 Mon Sep 17 00:00:00 2001 From: gangatp Date: Tue, 12 Dec 2023 12:00:06 +0530 Subject: [PATCH] fixing decryption size in RSA --- Tests/CPP_Bindings/Source/UnitTest_EncryptionUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/CPP_Bindings/Source/UnitTest_EncryptionUtils.cpp b/Tests/CPP_Bindings/Source/UnitTest_EncryptionUtils.cpp index 1ac8db3be..b898dbd87 100644 --- a/Tests/CPP_Bindings/Source/UnitTest_EncryptionUtils.cpp +++ b/Tests/CPP_Bindings/Source/UnitTest_EncryptionUtils.cpp @@ -288,7 +288,7 @@ void EncryptionCallbacks::keyDecryptClientCallback( || Lib3MF::eDigestMethod::SHA1 != ar.GetDigestMethod()) *status = 0; else if (nullptr == plainBuffer || 0 == plainSize) { - *plainNeeded = 32; + *plainNeeded = RsaMethods::getSize(context->key); *status = 32; } else {