From d78da4ca8fd72f0f96ab0109a7b2ab8e8b4bd6df Mon Sep 17 00:00:00 2001 From: subtly Date: Sun, 8 Mar 2015 13:48:49 +0100 Subject: [PATCH] coding standards --- libdevcrypto/Common.cpp | 8 ++++---- test/crypto.cpp | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libdevcrypto/Common.cpp b/libdevcrypto/Common.cpp index 4abac7eed..e108b230f 100644 --- a/libdevcrypto/Common.cpp +++ b/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; } diff --git a/test/crypto.cpp b/test/crypto.cpp index a844cbf09..2d7121f89 100644 --- a/test/crypto.cpp +++ b/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; } }