diff options
author | Jeffrey Walton <noloader@gmail.com> | 2023-04-15 16:45:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 16:45:02 -0400 |
commit | f5f63850f9a5521e45de3cc45be61309a2e71ab2 (patch) | |
tree | d9ec904ebd511ae673e89790a407f0cdcf0b9bbc /whrlpool.cpp | |
parent | 358d0cfecd593d55160df38e133b9450aaf1cd59 (diff) | |
download | cryptopp-git-f5f63850f9a5521e45de3cc45be61309a2e71ab2.tar.gz |
Use std namespace for memset, memcpy, memcmp (#1204)
Diffstat (limited to 'whrlpool.cpp')
-rw-r--r-- | whrlpool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/whrlpool.cpp b/whrlpool.cpp index 4a52a0dd..02b2f92a 100644 --- a/whrlpool.cpp +++ b/whrlpool.cpp @@ -100,7 +100,7 @@ std::string Whirlpool::AlgorithmProvider() const void Whirlpool::InitState(HashWordType *state)
{
- memset(state, 0, 8*sizeof(state[0]));
+ std::memset(state, 0, 8*sizeof(state[0]));
}
void Whirlpool::TruncatedFinal(byte *hash, size_t size)
@@ -118,7 +118,7 @@ void Whirlpool::TruncatedFinal(byte *hash, size_t size) Transform(m_state, m_data);
CorrectEndianess(m_state, m_state, DigestSize());
- memcpy(hash, m_state, size);
+ std::memcpy(hash, m_state, size);
Restart(); // reinit for next use
}
|