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 /speck.cpp | |
parent | afd3b5c596f31de650deac45301c1c3071b27357 (diff) | |
download | cryptopp-git-f5c86217c0d6c76d6b43c93b63f6670228aab5fb.tar.gz |
Use default alignment for GetBlock
Diffstat (limited to 'speck.cpp')
-rw-r--r-- | speck.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -211,7 +211,7 @@ void SPECK64::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)
@@ -234,7 +234,7 @@ void SPECK64::Base::UncheckedSetKey(const byte *userKey, unsigned int keyLength, void SPECK64::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)
@@ -250,14 +250,14 @@ void SPECK64::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 SPECK64::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)
@@ -273,7 +273,7 @@ void SPECK64::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]);
}
@@ -290,7 +290,7 @@ void SPECK128::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)
@@ -318,7 +318,7 @@ void SPECK128::Base::UncheckedSetKey(const byte *userKey, unsigned int keyLength void SPECK128::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)
@@ -337,14 +337,14 @@ void SPECK128::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 SPECK128::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)
@@ -363,7 +363,7 @@ void SPECK128::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]);
}
|