aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-11 15:28:38 -0500
committerJack Lloyd <[email protected]>2016-12-18 16:48:24 -0500
commitf3cb3edb512bdcab498d825886c3366c341b3f78 (patch)
tree645c73ec295a5a34f25d99903b6d9fa9751e86d3 /src/tests/tests.h
parentc1dd21253c1f3188ff45d3ad47698efd08235ae8 (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/tests.h')
-rw-r--r--src/tests/tests.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tests/tests.h b/src/tests/tests.h
index 32aaad0fb..51b59d972 100644
--- a/src/tests/tests.h
+++ b/src/tests/tests.h
@@ -34,8 +34,6 @@
namespace Botan_Tests {
-using Botan::byte;
-
#if defined(BOTAN_HAS_BIGINT)
using Botan::BigInt;
#endif
@@ -276,7 +274,7 @@ class Test
const std::vector<uint8_t, Alloc>& produced,
const char* expected_hex)
{
- const std::vector<byte> expected = Botan::hex_decode(expected_hex);
+ const std::vector<uint8_t> expected = Botan::hex_decode(expected_hex);
return test_eq(nullptr, what,
produced.data(), produced.size(),
expected.data(), expected.size());
@@ -351,7 +349,7 @@ class Test
if(r.size() > min_offset)
{
const size_t offset = std::max<size_t>(min_offset, rng.next_byte() % r.size());
- const byte perturb = rng.next_nonzero_byte();
+ const uint8_t perturb = rng.next_nonzero_byte();
r[offset] ^= perturb;
}