summaryrefslogtreecommitdiffstats
path: root/src/PolarSSL++
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/PolarSSL++/RsaPrivateKey.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PolarSSL++/RsaPrivateKey.cpp b/src/PolarSSL++/RsaPrivateKey.cpp
index 2d5a2a4b1..ed94923c2 100644
--- a/src/PolarSSL++/RsaPrivateKey.cpp
+++ b/src/PolarSSL++/RsaPrivateKey.cpp
@@ -100,7 +100,7 @@ AString cRsaPrivateKey::GetPubKeyDER(void)
{
return AString();
}
- return AString((const char *)(buf + sizeof(buf) - res), (size_t)res);
+ return AString(reinterpret_cast<const char *>(buf + sizeof(buf) - res), static_cast<size_t>(res));
}
@@ -134,7 +134,7 @@ int cRsaPrivateKey::Decrypt(const Byte * a_EncryptedData, size_t a_EncryptedLeng
{
return -1;
}
- return (int)DecryptedLength;
+ return static_cast<int>(DecryptedLength);
}
@@ -167,7 +167,7 @@ int cRsaPrivateKey::Encrypt(const Byte * a_PlainData, size_t a_PlainLength, Byte
{
return -1;
}
- return (int)m_Rsa.len;
+ return static_cast<int>(m_Rsa.len);
}