aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/par_hash/par_hash.cpp
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/lib/hash/par_hash/par_hash.cpp
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/lib/hash/par_hash/par_hash.cpp')
-rw-r--r--src/lib/hash/par_hash/par_hash.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/hash/par_hash/par_hash.cpp b/src/lib/hash/par_hash/par_hash.cpp
index 7320afee3..2a1ef7c9c 100644
--- a/src/lib/hash/par_hash/par_hash.cpp
+++ b/src/lib/hash/par_hash/par_hash.cpp
@@ -10,15 +10,15 @@
namespace Botan {
-void Parallel::add_data(const byte input[], size_t length)
+void Parallel::add_data(const uint8_t input[], size_t length)
{
for(auto&& hash : m_hashes)
hash->update(input, length);
}
-void Parallel::final_result(byte out[])
+void Parallel::final_result(uint8_t out[])
{
- u32bit offset = 0;
+ uint32_t offset = 0;
for(auto&& hash : m_hashes)
{