summaryrefslogtreecommitdiff
path: root/tea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tea.cpp')
-rw-r--r--tea.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tea.cpp b/tea.cpp
index dba159f6..3c0daa4c 100644
--- a/tea.cpp
+++ b/tea.cpp
@@ -106,8 +106,8 @@ void XTEA::Dec::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, by
void BTEA::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const
{
CRYPTOPP_UNUSED(xorBlock);
- assert(IsAlignedOn(inBlock,GetAlignmentOf<word32>()));
- assert(IsAlignedOn(outBlock,GetAlignmentOf<word32>()));
+ CRYPTOPP_ASSERT(IsAlignedOn(inBlock,GetAlignmentOf<word32>()));
+ CRYPTOPP_ASSERT(IsAlignedOn(outBlock,GetAlignmentOf<word32>()));
unsigned int n = m_blockSize / 4;
word32 *v = (word32*)(void *)outBlock;
@@ -136,8 +136,8 @@ void BTEA::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, by
void BTEA::Dec::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const
{
CRYPTOPP_UNUSED(xorBlock);
- assert(IsAlignedOn(inBlock,GetAlignmentOf<word32>()));
- assert(IsAlignedOn(outBlock,GetAlignmentOf<word32>()));
+ CRYPTOPP_ASSERT(IsAlignedOn(inBlock,GetAlignmentOf<word32>()));
+ CRYPTOPP_ASSERT(IsAlignedOn(outBlock,GetAlignmentOf<word32>()));
unsigned int n = m_blockSize / 4;
word32 *v = (word32*)(void *)outBlock;