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_ffi.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_ffi.cpp')
-rw-r--r-- | src/tests/test_ffi.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/test_ffi.cpp b/src/tests/test_ffi.cpp index 26c76789f..dd066e248 100644 --- a/src/tests/test_ffi.cpp +++ b/src/tests/test_ffi.cpp @@ -144,7 +144,7 @@ class FFI_Unit_Tests : public Test { result.test_eq("MAC output length", output_len, 32); - const byte mac_key[] = { 0xAA, 0xBB, 0xCC, 0xDD }; + const uint8_t mac_key[] = { 0xAA, 0xBB, 0xCC, 0xDD }; outbuf.resize(output_len); // Test that after clear or final the object can be reused @@ -684,12 +684,12 @@ class FFI_Unit_Tests : public Test result.test_eq("algo name", std::string(namebuf), "McEliece"); } - size_t i = 0; + const uint64_t zero_seq = 0; uint8_t ad[8]; - Botan::store_be(static_cast<Botan::u64bit>(i), ad); + Botan::store_be(zero_seq, ad); const size_t ad_len = sizeof(ad); - const Botan::secure_vector<byte> plaintext = Test::rng().random_vec(Test::rng().next_byte()); + const Botan::secure_vector<uint8_t> plaintext = Test::rng().random_vec(Test::rng().next_byte()); size_t plaintext_len = plaintext.size(); size_t ciphertext_len = 0; |