diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-07-01 01:01:36 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-07-01 01:01:36 -0400 |
commit | 011a66d03b19b5609a12d78592dfdc55761882da (patch) | |
tree | 1bce08b1de3e18857480eca0d276abfd87607759 /cham.cpp | |
parent | 3d29f99af725e3a5828180514acdd555e19c7c6f (diff) | |
download | cryptopp-git-011a66d03b19b5609a12d78592dfdc55761882da.tar.gz |
Clear sign compare warning
Diffstat (limited to 'cham.cpp')
-rw-r--r-- | cham.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -133,7 +133,7 @@ void CHAM64::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, GetBlock<word16, BigEndian> iblock(inBlock);
iblock(m_x[0])(m_x[1])(m_x[2])(m_x[3]);
- const unsigned int R = 80;
+ const int R = 80;
for (int i = 0; i < R; i+=16)
{
CHAM_EncRound< 0, 16>(m_x.begin(), m_rk.begin(), i+0);
@@ -164,7 +164,7 @@ void CHAM64::Dec::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, GetBlock<word16, BigEndian> iblock(inBlock);
iblock(m_x[0])(m_x[1])(m_x[2])(m_x[3]);
- const unsigned int R = 80;
+ const int R = 80;
for (int i = R-1; i >=0 ; i-=16)
{
CHAM_DecRound<15, 16>(m_x.begin(), m_rk.begin(), i-0);
@@ -214,7 +214,7 @@ void CHAM128::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, {
case 4: // 128-bit key
{
- const unsigned int R = 80;
+ const int R = 80;
for (int i = 0; i < R; i+=8)
{
CHAM_EncRound<0, 8>(m_x.begin(), m_rk.begin(), i+0);
@@ -230,7 +230,7 @@ void CHAM128::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, }
case 8: // 256-bit key
{
- const unsigned int R = 96;
+ const int R = 96;
for (int i = 0; i < R; i+=16)
{
CHAM_EncRound< 0, 16>(m_x.begin(), m_rk.begin(), i+0);
@@ -270,7 +270,7 @@ void CHAM128::Dec::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, {
case 4: // 128-bit key
{
- const unsigned int R = 80;
+ const int R = 80;
for (int i = R-1; i >= 0; i-=8)
{
CHAM_DecRound<7, 8>(m_x.begin(), m_rk.begin(), i-0);
@@ -286,7 +286,7 @@ void CHAM128::Dec::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, }
case 8: // 256-bit key
{
- const unsigned int R = 96;
+ const int R = 96;
for (int i = R-1; i >= 0; i-=16)
{
CHAM_DecRound<15, 16>(m_x.begin(), m_rk.begin(), i-0);
|