summaryrefslogtreecommitdiff
path: root/blake2.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-03-01 06:10:06 -0500
committerJeffrey Walton <noloader@gmail.com>2017-03-01 06:10:06 -0500
commit5efb019d8bdc593b3c1a0b57d615b170c7dab02a (patch)
treee2c10e737542fd13ea50b58480e0791bbc455e47 /blake2.cpp
parent5fb2f5d45b9bb2cd86db5d01f4b30d606a2a4c80 (diff)
downloadcryptopp-git-5efb019d8bdc593b3c1a0b57d615b170c7dab02a.tar.gz
Add C++ nullptr support (Issue 383)
Diffstat (limited to 'blake2.cpp')
-rw-r--r--blake2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/blake2.cpp b/blake2.cpp
index 0bdaeab7..dd9de2e5 100644
--- a/blake2.cpp
+++ b/blake2.cpp
@@ -342,7 +342,7 @@ void BLAKE2_Base<W, T_64bit>::UncheckedSetKey(const byte *key, unsigned int leng
template <class W, bool T_64bit>
BLAKE2_Base<W, T_64bit>::BLAKE2_Base() : m_state(1), m_block(1), m_digestSize(DIGESTSIZE), m_treeMode(false)
{
- UncheckedSetKey(NULL, 0, g_nullNameValuePairs);
+ UncheckedSetKey(NULLPTR, 0, g_nullNameValuePairs);
Restart();
}
@@ -351,7 +351,7 @@ BLAKE2_Base<W, T_64bit>::BLAKE2_Base(bool treeMode, unsigned int digestSize) : m
{
CRYPTOPP_ASSERT(digestSize <= DIGESTSIZE);
- UncheckedSetKey(NULL, 0, g_nullNameValuePairs);
+ UncheckedSetKey(NULLPTR, 0, g_nullNameValuePairs);
Restart();
}
@@ -392,7 +392,7 @@ void BLAKE2_Base<W, T_64bit>::Restart(const BLAKE2_ParameterBlock<T_64bit>& bloc
State& state = *m_state.data();
state.t[0] = state.t[1] = 0, state.f[0] = state.f[1] = 0, state.length = 0;
- if (counter != NULL)
+ if (counter != NULLPTR)
{
state.t[0] = counter[0];
state.t[1] = counter[1];