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 /dmac.h | |
parent | 358d0cfecd593d55160df38e133b9450aaf1cd59 (diff) | |
download | cryptopp-git-f5f63850f9a5521e45de3cc45be61309a2e71ab2.tar.gz |
Use std namespace for memset, memcpy, memcmp (#1204)
Diffstat (limited to 'dmac.h')
-rw-r--r-- | dmac.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -90,7 +90,7 @@ void DMAC_Base<T>::TruncatedFinal(byte *mac, size_t size) byte pad[T::BLOCKSIZE];
byte padByte = byte(T::BLOCKSIZE-m_counter);
- memset(pad, padByte, padByte);
+ std::memset(pad, padByte, padByte);
m_mac1.Update(pad, padByte);
m_mac1.TruncatedFinal(mac, size);
m_f2.ProcessBlock(mac);
@@ -102,7 +102,7 @@ template <class T> byte *DMAC_Base<T>::GenerateSubKeys(const byte *key, size_t keylength)
{
typename T::Encryption cipher(key, keylength);
- memset(m_subkeys, 0, m_subkeys.size());
+ std::memset(m_subkeys, 0, m_subkeys.size());
cipher.ProcessBlock(m_subkeys);
m_subkeys[m_subkeys.size()/2 + T::BLOCKSIZE - 1] = 1;
cipher.ProcessBlock(m_subkeys+m_subkeys.size()/2);
|