Browse Source

coding standards

cl-refactor
subtly 10 years ago
parent
commit
d78da4ca8f
  1. 8
      libdevcrypto/Common.cpp
  2. 12
      test/crypto.cpp

8
libdevcrypto/Common.cpp

@ -129,9 +129,9 @@ h128 dev::encryptSymNoAuth(Secret const& _k, bytesConstRef _plain, bytes& o_ciph
e.ProcessData(o_cipher.data(), _plain.data(), _plain.size());
return _iv;
}
catch(CryptoPP::Exception& e)
catch (CryptoPP::Exception& _e)
{
cerr << e.what() << endl;
cerr << _e.what() << endl;
o_cipher.resize(0);
return h128();
}
@ -150,9 +150,9 @@ bool dev::decryptSymNoAuth(Secret const& _k, h128 const& _iv, bytesConstRef _cip
d.ProcessData(o_plaintext.data(), _cipher.data(), _cipher.size());
return true;
}
catch(CryptoPP::Exception& e)
catch (CryptoPP::Exception& _e)
{
cerr << e.what() << endl;
cerr << _e.what() << endl;
o_plaintext.resize(0);
return false;
}

12
test/crypto.cpp

@ -658,9 +658,9 @@ BOOST_AUTO_TEST_CASE(cryptopp_aes128_ctr)
BOOST_REQUIRE(text != original);
cipherCopy = text;
}
catch(CryptoPP::Exception& e)
catch (CryptoPP::Exception& _e)
{
cerr << e.what() << endl;
cerr << _e.what() << endl;
}
try
@ -670,9 +670,9 @@ BOOST_AUTO_TEST_CASE(cryptopp_aes128_ctr)
d.ProcessData(out, in, text.size());
BOOST_REQUIRE(text == original);
}
catch(CryptoPP::Exception& e)
catch (CryptoPP::Exception& _e)
{
cerr << e.what() << endl;
cerr << _e.what() << endl;
}
@ -690,9 +690,9 @@ BOOST_AUTO_TEST_CASE(cryptopp_aes128_ctr)
// yep, ctr mode.
BOOST_REQUIRE(cipherCopy == original);
}
catch(CryptoPP::Exception& e)
catch (CryptoPP::Exception& _e)
{
cerr << e.what() << endl;
cerr << _e.what() << endl;
}
}

Loading…
Cancel
Save