diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-06-24 16:05:37 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-06-24 16:05:37 -0400 |
commit | f5c86217c0d6c76d6b43c93b63f6670228aab5fb (patch) | |
tree | 08df443111616d7bc1eca98c51092dad15122825 /simon.cpp | |
parent | afd3b5c596f31de650deac45301c1c3071b27357 (diff) | |
download | cryptopp-git-f5c86217c0d6c76d6b43c93b63f6670228aab5fb.tar.gz |
Use default alignment for GetBlock
Diffstat (limited to 'simon.cpp')
-rw-r--r-- | simon.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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]);
}
|