summaryrefslogtreecommitdiff
path: root/dlltest.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2023-04-15 16:45:02 -0400
committerGitHub <noreply@github.com>2023-04-15 16:45:02 -0400
commitf5f63850f9a5521e45de3cc45be61309a2e71ab2 (patch)
treed9ec904ebd511ae673e89790a407f0cdcf0b9bbc /dlltest.cpp
parent358d0cfecd593d55160df38e133b9450aaf1cd59 (diff)
downloadcryptopp-git-f5f63850f9a5521e45de3cc45be61309a2e71ab2.tar.gz
Use std namespace for memset, memcpy, memcmp (#1204)
Diffstat (limited to 'dlltest.cpp')
-rw-r--r--dlltest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dlltest.cpp b/dlltest.cpp
index addced55..119feae6 100644
--- a/dlltest.cpp
+++ b/dlltest.cpp
@@ -73,7 +73,7 @@ void FIPS140_SampleApplication()
decryption_DES_EDE3_CFB.SetKeyWithIV(key, sizeof(key), iv);
decryption_DES_EDE3_CFB.ProcessString(decrypted, ciphertext, 24);
- if (memcmp(plaintext, decrypted, 24) != 0)
+ if (std::memcmp(plaintext, decrypted, 24) != 0)
{
std::cerr << "DES-EDE3-CFB Encryption/decryption failed.\n";
abort();
@@ -89,7 +89,7 @@ void FIPS140_SampleApplication()
sha.Update(message, 3);
sha.Final(digest);
- if (memcmp(digest, expectedDigest, 20) != 0)
+ if (std::memcmp(digest, expectedDigest, 20) != 0)
{
std::cerr << "SHA-1 hash failed.\n";
abort();