summaryrefslogtreecommitdiff
path: root/fipsalgt.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-26 16:03:14 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-26 16:03:14 -0400
commitb7de164d6251dc066123b59bc15d30c74e920756 (patch)
tree650e67242386d55616a2038c5cbc7042568ed377 /fipsalgt.cpp
parent7b64ca489a7e1da36b02b4a35d149275914d8268 (diff)
downloadcryptopp-git-b7de164d6251dc066123b59bc15d30c74e920756.tar.gz
Cut-in CRYPTOPP_ASSERT in all remaining header and source files
Diffstat (limited to 'fipsalgt.cpp')
-rw-r--r--fipsalgt.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fipsalgt.cpp b/fipsalgt.cpp
index 88597023..95f8f7c6 100644
--- a/fipsalgt.cpp
+++ b/fipsalgt.cpp
@@ -259,7 +259,7 @@ protected:
static inline void Xor(SecByteBlock &z, const SecByteBlock &x, const SecByteBlock &y)
{
- assert(x.size() == y.size());
+ CRYPTOPP_ASSERT(x.size() == y.size());
z.resize(x.size());
xorbuf(z, x, y, x.size());
}
@@ -634,7 +634,7 @@ protected:
}
else
{
- assert(m_test == "Gen");
+ CRYPTOPP_ASSERT(m_test == "Gen");
int modLen = atol(m_bracketString.substr(6).c_str());
std::string &encodedKey = m_data["PrivKey"];
RSA::PrivateKey priv;
@@ -1031,7 +1031,7 @@ protected:
}
else
{
- assert(m_test == "KAT");
+ CRYPTOPP_ASSERT(m_test == "KAT");
SecByteBlock &input = m_data2[INPUT];
SecByteBlock result(input.size());
@@ -1094,7 +1094,7 @@ protected:
if (m_line.substr(0, 2) == "H>")
{
- assert(m_test == "sha");
+ CRYPTOPP_ASSERT(m_test == "sha");
m_bracketString = m_line.substr(2, m_line.size()-4);
m_line = m_line.substr(0, 13) + "Hashes<H";
copyLine = true;