summaryrefslogtreecommitdiffstats
path: root/src/PolarSSL++/Sha1Checksum.cpp
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-08-30 16:00:06 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2017-08-30 16:00:06 +0200
commit84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7 (patch)
treeaa1648c2ba260b8576673677435481d371eec7b0 /src/PolarSSL++/Sha1Checksum.cpp
parentUpdate core plugins to latest version (#3951) (diff)
downloadcuberite-84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7.tar
cuberite-84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7.tar.gz
cuberite-84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7.tar.bz2
cuberite-84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7.tar.lz
cuberite-84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7.tar.xz
cuberite-84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7.tar.zst
cuberite-84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7.zip
Diffstat (limited to '')
-rw-r--r--src/mbedTLS++/Sha1Checksum.cpp (renamed from src/PolarSSL++/Sha1Checksum.cpp)10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/PolarSSL++/Sha1Checksum.cpp b/src/mbedTLS++/Sha1Checksum.cpp
index 5a56c18b0..9c82d92fe 100644
--- a/src/PolarSSL++/Sha1Checksum.cpp
+++ b/src/mbedTLS++/Sha1Checksum.cpp
@@ -1,4 +1,4 @@
-
+
// Sha1Checksum.cpp
// Declares the cSha1Checksum class representing the SHA-1 checksum calculator
@@ -56,7 +56,7 @@ public:
cSha1Checksum::cSha1Checksum(void) :
m_DoesAcceptInput(true)
{
- sha1_starts(&m_Sha1);
+ mbedtls_sha1_starts(&m_Sha1);
}
@@ -67,7 +67,7 @@ void cSha1Checksum::Update(const Byte * a_Data, size_t a_Length)
{
ASSERT(m_DoesAcceptInput); // Not Finalize()-d yet, or Restart()-ed
- sha1_update(&m_Sha1, a_Data, a_Length);
+ mbedtls_sha1_update(&m_Sha1, a_Data, a_Length);
}
@@ -78,7 +78,7 @@ void cSha1Checksum::Finalize(cSha1Checksum::Checksum & a_Output)
{
ASSERT(m_DoesAcceptInput); // Not Finalize()-d yet, or Restart()-ed
- sha1_finish(&m_Sha1, a_Output);
+ mbedtls_sha1_finish(&m_Sha1, a_Output);
m_DoesAcceptInput = false;
}
@@ -129,7 +129,7 @@ void cSha1Checksum::DigestToJava(const Checksum & a_Digest, AString & a_Out)
void cSha1Checksum::Restart(void)
{
- sha1_starts(&m_Sha1);
+ mbedtls_sha1_starts(&m_Sha1);
m_DoesAcceptInput = true;
}