diff options
author | Jack Lloyd <[email protected]> | 2016-12-11 15:28:38 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-12-18 16:48:24 -0500 |
commit | f3cb3edb512bdcab498d825886c3366c341b3f78 (patch) | |
tree | 645c73ec295a5a34f25d99903b6d9fa9751e86d3 /src/tests/test_aead.cpp | |
parent | c1dd21253c1f3188ff45d3ad47698efd08235ae8 (diff) |
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.
Diffstat (limited to 'src/tests/test_aead.cpp')
-rw-r--r-- | src/tests/test_aead.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<byte> garbage = Test::rng().random_vec(enc->update_granularity()); + Botan::secure_vector<uint8_t> 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<byte> garbage = Test::rng().random_vec(dec->update_granularity()); + Botan::secure_vector<uint8_t> 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<byte> mutated_input = mutate_vec(input, true); + const std::vector<uint8_t> 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<byte> bad_nonce = mutate_vec(nonce); + std::vector<uint8_t> 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<byte> bad_ad = mutate_vec(ad, true); + const std::vector<uint8_t> bad_ad = mutate_vec(ad, true); dec->reset(); dec->set_ad(bad_ad); |