summaryrefslogtreecommitdiff
path: root/authenc.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 /authenc.cpp
parent358d0cfecd593d55160df38e133b9450aaf1cd59 (diff)
downloadcryptopp-git-f5f63850f9a5521e45de3cc45be61309a2e71ab2.tar.gz
Use std namespace for memset, memcpy, memcmp (#1204)
Diffstat (limited to 'authenc.cpp')
-rw-r--r--authenc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/authenc.cpp b/authenc.cpp
index 89a7142d..081e1e1b 100644
--- a/authenc.cpp
+++ b/authenc.cpp
@@ -22,7 +22,7 @@ void AuthenticatedSymmetricCipherBase::AuthenticateData(const byte *input, size_
{
if (num+len >= blockSize)
{
- memcpy(data+num, input, blockSize-num);
+ std::memcpy(data+num, input, blockSize-num);
AuthenticateBlocks(data, blockSize);
input += (blockSize-num);
len -= (blockSize-num);
@@ -31,7 +31,7 @@ void AuthenticatedSymmetricCipherBase::AuthenticateData(const byte *input, size_
}
else
{
- memcpy(data+num, input, len);
+ std::memcpy(data+num, input, len);
num += (unsigned int)len;
return;
}
@@ -46,7 +46,7 @@ void AuthenticatedSymmetricCipherBase::AuthenticateData(const byte *input, size_
}
if (data && len)
- memcpy(data, input, len);
+ std::memcpy(data, input, len);
num = (unsigned int)len;
}