summaryrefslogtreecommitdiffstats
path: root/src/mbedTLS++/RsaPrivateKey.cpp
diff options
context:
space:
mode:
authorAzurethi <Github@Azurethi.me>2020-12-01 23:23:45 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2020-12-05 01:12:48 +0100
commit1c5af8c00dcef2a58f161c898a0bb83744b6ba68 (patch)
tree0cd5209e70525a1c756b42ebc6bd9eb8b88c4417 /src/mbedTLS++/RsaPrivateKey.cpp
parentLight the nether portal when switching dimensions (#5062) (diff)
downloadcuberite-1c5af8c00dcef2a58f161c898a0bb83744b6ba68.tar
cuberite-1c5af8c00dcef2a58f161c898a0bb83744b6ba68.tar.gz
cuberite-1c5af8c00dcef2a58f161c898a0bb83744b6ba68.tar.bz2
cuberite-1c5af8c00dcef2a58f161c898a0bb83744b6ba68.tar.lz
cuberite-1c5af8c00dcef2a58f161c898a0bb83744b6ba68.tar.xz
cuberite-1c5af8c00dcef2a58f161c898a0bb83744b6ba68.tar.zst
cuberite-1c5af8c00dcef2a58f161c898a0bb83744b6ba68.zip
Diffstat (limited to 'src/mbedTLS++/RsaPrivateKey.cpp')
-rw-r--r--src/mbedTLS++/RsaPrivateKey.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbedTLS++/RsaPrivateKey.cpp b/src/mbedTLS++/RsaPrivateKey.cpp
index 94c7b38eb..704a2a1d0 100644
--- a/src/mbedTLS++/RsaPrivateKey.cpp
+++ b/src/mbedTLS++/RsaPrivateKey.cpp
@@ -118,7 +118,7 @@ int cRsaPrivateKey::Decrypt(const Byte * a_EncryptedData, size_t a_EncryptedLeng
if (a_DecryptedMaxLength < m_Rsa.len)
{
LOGD("%s: Invalid a_DecryptedMaxLength: got %u, exp at least %u",
- __FUNCTION__, static_cast<unsigned>(a_EncryptedLength), static_cast<unsigned>(m_Rsa.len)
+ __FUNCTION__, static_cast<unsigned>(a_DecryptedMaxLength), static_cast<unsigned>(m_Rsa.len)
);
ASSERT(!"Invalid a_DecryptedMaxLength!");
return -1;