From f5f63850f9a5521e45de3cc45be61309a2e71ab2 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 15 Apr 2023 16:45:02 -0400 Subject: Use std namespace for memset, memcpy, memcmp (#1204) --- dlltest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dlltest.cpp') 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(); -- cgit v1.2.1