Whitespace check-in
parent
1d7dfc6927
commit
238b5e6188
10
kalyna.cpp
10
kalyna.cpp
|
|
@ -6,7 +6,7 @@
|
||||||
// (http://github.com/Roman-Oliynykov/Kalyna-reference). The third and most utilized resource
|
// (http://github.com/Roman-Oliynykov/Kalyna-reference). The third and most utilized resource
|
||||||
// was Keru Kuro's public domain implementation of Kalyna in CppCrypto
|
// was Keru Kuro's public domain implementation of Kalyna in CppCrypto
|
||||||
// (http://sourceforge.net/projects/cppcrypto/). Kuro has an outstanding implementation that
|
// (http://sourceforge.net/projects/cppcrypto/). Kuro has an outstanding implementation that
|
||||||
// performed better than the reference implementation and out intial attempts. The only downside
|
// performed better than the reference implementation and our initial attempts. The only downside
|
||||||
// was the missing big endian port.
|
// was the missing big endian port.
|
||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
|
|
@ -927,11 +927,6 @@ void Kalyna::Base::SetKey_88(const word64 key[8])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//template <unsigned int NB, unsigned int NK>
|
|
||||||
//void Kalyna::Base::SetKey_Template(const word64 key[NK])
|
|
||||||
//{
|
|
||||||
//}
|
|
||||||
|
|
||||||
// *********************** ProcessAndXorBlock specializations *********************** //
|
// *********************** ProcessAndXorBlock specializations *********************** //
|
||||||
|
|
||||||
void Kalyna::Base::ProcessBlock_22(const word64 inBlock[2], word64 outBlock[2]) const
|
void Kalyna::Base::ProcessBlock_22(const word64 inBlock[2], word64 outBlock[2]) const
|
||||||
|
|
@ -1103,7 +1098,8 @@ void Kalyna::Base::ProcessBlock_44(const word64 inBlock[4], word64 outBlock[4])
|
||||||
#if defined(IS_BIG_ENDIAN)
|
#if defined(IS_BIG_ENDIAN)
|
||||||
{
|
{
|
||||||
typedef GetBlock<word64, LittleEndian, false> Block;
|
typedef GetBlock<word64, LittleEndian, false> Block;
|
||||||
Block block(t1); block(outBlock[0])(outBlock[1])(outBlock[2])(outBlock[3]);
|
Block block(t1);
|
||||||
|
block(outBlock[0])(outBlock[1])(outBlock[2])(outBlock[3]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
kalyna.h
2
kalyna.h
|
|
@ -9,7 +9,7 @@
|
||||||
//! Oliynykov and Oleksandr Kazymyrov's GitHub with the reference implementation
|
//! Oliynykov and Oleksandr Kazymyrov's GitHub with the reference implementation
|
||||||
//! (http://github.com/Roman-Oliynykov/Kalyna-reference). The third resource was Keru Kuro's implementation
|
//! (http://github.com/Roman-Oliynykov/Kalyna-reference). The third resource was Keru Kuro's implementation
|
||||||
//! of Kalyna in CppCrypto (http://sourceforge.net/projects/cppcrypto/). Kuro has an outstanding
|
//! of Kalyna in CppCrypto (http://sourceforge.net/projects/cppcrypto/). Kuro has an outstanding
|
||||||
//! implementation that performed better than the reference implementation and out intial attempts.
|
//! implementation that performed better than the reference implementation and our initial attempts.
|
||||||
|
|
||||||
#ifndef CRYPTOPP_KALYNA_H
|
#ifndef CRYPTOPP_KALYNA_H
|
||||||
#define CRYPTOPP_KALYNA_H
|
#define CRYPTOPP_KALYNA_H
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,6 @@ NAMESPACE_BEGIN(KalynaTab)
|
||||||
|
|
||||||
#define EXPORT_TABLE extern
|
#define EXPORT_TABLE extern
|
||||||
|
|
||||||
#if defined(IS_LITTLE_ENDIAN)
|
|
||||||
|
|
||||||
EXPORT_TABLE
|
EXPORT_TABLE
|
||||||
const word64 T[8][256] =
|
const word64 T[8][256] =
|
||||||
{
|
{
|
||||||
|
|
@ -1077,10 +1075,6 @@ const word64 IT[8][256] =
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#else
|
|
||||||
# error "Only little endian is supported at the moment"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
EXPORT_TABLE
|
EXPORT_TABLE
|
||||||
const byte S[4][256] =
|
const byte S[4][256] =
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue