From f3cb3edb512bdcab498d825886c3366c341b3f78 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 11 Dec 2016 15:28:38 -0500 Subject: Convert to using standard uintN_t integer types Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them. --- src/tests/test_aead.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/tests/test_aead.cpp') diff --git a/src/tests/test_aead.cpp b/src/tests/test_aead.cpp index ed94d75ba..18e4417a8 100644 --- a/src/tests/test_aead.cpp +++ b/src/tests/test_aead.cpp @@ -40,7 +40,7 @@ class AEAD_Tests : public Text_Based_Test enc->set_ad(mutate_vec(ad)); enc->start(mutate_vec(nonce)); - Botan::secure_vector garbage = Test::rng().random_vec(enc->update_granularity()); + Botan::secure_vector garbage = Test::rng().random_vec(enc->update_granularity()); enc->update(garbage); // reset message specific state @@ -142,7 +142,7 @@ class AEAD_Tests : public Text_Based_Test dec->set_ad(mutate_vec(ad)); dec->start(mutate_vec(nonce)); - Botan::secure_vector garbage = Test::rng().random_vec(dec->update_granularity()); + Botan::secure_vector garbage = Test::rng().random_vec(dec->update_granularity()); dec->update(garbage); // reset message specific state @@ -225,7 +225,7 @@ class AEAD_Tests : public Text_Based_Test } // test decryption with modified ciphertext - const std::vector mutated_input = mutate_vec(input, true); + const std::vector mutated_input = mutate_vec(input, true); buf.assign(mutated_input.begin(), mutated_input.end()); dec->reset(); @@ -251,7 +251,7 @@ class AEAD_Tests : public Text_Based_Test if(nonce.size() > 0) { buf.assign(input.begin(), input.end()); - std::vector bad_nonce = mutate_vec(nonce); + std::vector bad_nonce = mutate_vec(nonce); dec->reset(); dec->set_ad(ad); @@ -273,7 +273,7 @@ class AEAD_Tests : public Text_Based_Test } // test decryption with modified associated_data - const std::vector bad_ad = mutate_vec(ad, true); + const std::vector bad_ad = mutate_vec(ad, true); dec->reset(); dec->set_ad(bad_ad); -- cgit v1.2.3