Clear clang-tidy warnings

pull/575/head
Jeffrey Walton 2018-01-24 18:24:53 -05:00
parent 30bcc7022d
commit 4d4c3d92a8
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 7 additions and 5 deletions

View File

@ -327,7 +327,7 @@ void ARIA::Base::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, b
t = UINT32_CAST(outBlock);
BigEndianBlock::Put(rk, t)(t[0])(t[1])(t[2])(t[3]);
#endif
#endif // CRYPTOPP_LITTLE_ENDIAN
#if CRYPTOPP_ARM_NEON_AVAILABLE
if (HasNEON())

View File

@ -35,6 +35,7 @@ typedef BlockGetAndPut<word32, BigEndian> Block;
void CAST128::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const
{
// TODO: add a SecBlock workspace to the class when the ABI can change
word32 t,l,r;
/* Get inblock into l,r */
@ -65,6 +66,7 @@ void CAST128::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock,
void CAST128::Dec::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const
{
// TODO: add a SecBlock workspace to the class when the ABI can change
word32 t,l,r;
/* Get inblock into l,r */
@ -90,8 +92,6 @@ void CAST128::Dec::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock,
F1(l, r, 0, 16);
/* Put l,r into outblock */
Block::Put(xorBlock, outBlock)(l)(r);
/* Wipe clean */
t = l = r = 0;
}
void CAST128::Base::UncheckedSetKey(const byte *userKey, unsigned int keylength, const NameValuePairs &)
@ -213,6 +213,7 @@ the keys are used */
void CAST256::Base::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const
{
// TODO: add a SecBlock workspace to the class when the ABI can change
word32 t, block[4];
Block::Get(inBlock)(block[0])(block[1])(block[2])(block[3]);
@ -255,6 +256,7 @@ void CAST256::Base::UncheckedSetKey(const byte *userKey, unsigned int keylength,
{
AssertValidKeyLength(keylength);
// TODO: add a SecBlock workspace to the class when the ABI can change
word32 kappa[8];
GetUserKey(BIG_ENDIAN_ORDER, kappa, 8, userKey, keylength);