summaryrefslogtreecommitdiff
path: root/simon.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-06-24 16:05:37 -0400
committerJeffrey Walton <noloader@gmail.com>2018-06-24 16:05:37 -0400
commitf5c86217c0d6c76d6b43c93b63f6670228aab5fb (patch)
tree08df443111616d7bc1eca98c51092dad15122825 /simon.cpp
parentafd3b5c596f31de650deac45301c1c3071b27357 (diff)
downloadcryptopp-git-f5c86217c0d6c76d6b43c93b63f6670228aab5fb.tar.gz
Use default alignment for GetBlock
Diffstat (limited to 'simon.cpp')
-rw-r--r--simon.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/simon.cpp b/simon.cpp
index 82b7ef4f..2e26e7b9 100644
--- a/simon.cpp
+++ b/simon.cpp
@@ -236,7 +236,7 @@ void SIMON64::Base::UncheckedSetKey(const byte *userKey, unsigned int keyLength,
m_wspace.New(4U);
// Do the endian gyrations from the paper and align pointers
- typedef GetBlock<word32, LittleEndian, false> KeyBlock;
+ typedef GetBlock<word32, LittleEndian> KeyBlock;
KeyBlock kblk(userKey);
switch (m_kwords)
@@ -259,7 +259,7 @@ void SIMON64::Base::UncheckedSetKey(const byte *userKey, unsigned int keyLength,
void SIMON64::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const
{
// Do the endian gyrations from the paper and align pointers
- typedef GetBlock<word32, LittleEndian, false> InBlock;
+ typedef GetBlock<word32, LittleEndian> InBlock;
InBlock iblk(inBlock); iblk(m_wspace[1])(m_wspace[0]);
switch (m_rounds)
@@ -275,14 +275,14 @@ void SIMON64::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock,
}
// Do the endian gyrations from the paper and align pointers
- typedef PutBlock<word32, LittleEndian, false> OutBlock;
+ typedef PutBlock<word32, LittleEndian> OutBlock;
OutBlock oblk(xorBlock, outBlock); oblk(m_wspace[3])(m_wspace[2]);
}
void SIMON64::Dec::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const
{
// Do the endian gyrations from the paper and align pointers
- typedef GetBlock<word32, LittleEndian, false> InBlock;
+ typedef GetBlock<word32, LittleEndian> InBlock;
InBlock iblk(inBlock); iblk(m_wspace[1])(m_wspace[0]);
switch (m_rounds)
@@ -298,7 +298,7 @@ void SIMON64::Dec::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock,
}
// Do the endian gyrations from the paper and align pointers
- typedef PutBlock<word32, LittleEndian, false> OutBlock;
+ typedef PutBlock<word32, LittleEndian> OutBlock;
OutBlock oblk(xorBlock, outBlock); oblk(m_wspace[3])(m_wspace[2]);
}
@@ -315,7 +315,7 @@ void SIMON128::Base::UncheckedSetKey(const byte *userKey, unsigned int keyLength
m_wspace.New(4U);
// Do the endian gyrations from the paper and align pointers
- typedef GetBlock<word64, LittleEndian, false> KeyBlock;
+ typedef GetBlock<word64, LittleEndian> KeyBlock;
KeyBlock kblk(userKey);
switch (m_kwords)
@@ -343,7 +343,7 @@ void SIMON128::Base::UncheckedSetKey(const byte *userKey, unsigned int keyLength
void SIMON128::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const
{
// Do the endian gyrations from the paper and align pointers
- typedef GetBlock<word64, LittleEndian, false> InBlock;
+ typedef GetBlock<word64, LittleEndian> InBlock;
InBlock iblk(inBlock); iblk(m_wspace[1])(m_wspace[0]);
switch (m_rounds)
@@ -362,14 +362,14 @@ void SIMON128::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock
}
// Do the endian gyrations from the paper and align pointers
- typedef PutBlock<word64, LittleEndian, false> OutBlock;
+ typedef PutBlock<word64, LittleEndian> OutBlock;
OutBlock oblk(xorBlock, outBlock); oblk(m_wspace[3])(m_wspace[2]);
}
void SIMON128::Dec::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const
{
// Do the endian gyrations from the paper and align pointers
- typedef GetBlock<word64, LittleEndian, false> InBlock;
+ typedef GetBlock<word64, LittleEndian> InBlock;
InBlock iblk(inBlock); iblk(m_wspace[1])(m_wspace[0]);
switch (m_rounds)
@@ -388,7 +388,7 @@ void SIMON128::Dec::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock
}
// Do the endian gyrations from the paper and align pointers
- typedef PutBlock<word64, LittleEndian, false> OutBlock;
+ typedef PutBlock<word64, LittleEndian> OutBlock;
OutBlock oblk(xorBlock, outBlock); oblk(m_wspace[3])(m_wspace[2]);
}