diff options
author | Jack Lloyd <[email protected]> | 2017-11-05 10:39:56 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-11-05 10:39:56 -0500 |
commit | 6a4ef2e84d321da042e67afcd6e6f93cb198d4cb (patch) | |
tree | 674416111a169e854129af820a41417b702a4bda | |
parent | 16e232c789baaca04d4bd832931d1c3590c6a331 (diff) |
Fix shadow warning
[ci skip]
-rw-r--r-- | src/tests/test_stream.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/test_stream.cpp b/src/tests/test_stream.cpp index 357b8c769..c430c0cf3 100644 --- a/src/tests/test_stream.cpp +++ b/src/tests/test_stream.cpp @@ -103,8 +103,11 @@ class Stream_Cipher_Tests final : public Text_Based_Test result.test_eq("Clone has same name", cipher->name(), clone->name()); clone->set_key(Test::rng().random_vec(cipher->maximum_keylength())); + { std::vector<uint8_t> buf = input; cipher->encrypt(buf); + result.test_eq(provider, "encrypt", buf, expected); + } cipher->clear(); @@ -118,8 +121,6 @@ class Stream_Cipher_Tests final : public Text_Based_Test { result.test_success("Trying to encrypt with no key set (after clear) fails"); } - - result.test_eq(provider, "encrypt", buf, expected); } return result; |