aboutsummaryrefslogtreecommitdiffstats
path: root/src/hash/comb4p
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-12 23:29:55 +0000
committerlloyd <[email protected]>2010-10-12 23:29:55 +0000
commit2af9ba577730f071eef44b3ba492c3bfad0a8ec6 (patch)
tree92a4c4e973756225d42bb99a99110b2669be7299 /src/hash/comb4p
parent97e8d6086171772cd5e45bcf2f5b1ea1e38e6bf5 (diff)
Use size_t for BufferedComputation::add_data
Diffstat (limited to 'src/hash/comb4p')
-rw-r--r--src/hash/comb4p/comb4p.cpp4
-rw-r--r--src/hash/comb4p/comb4p.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/hash/comb4p/comb4p.cpp b/src/hash/comb4p/comb4p.cpp
index ecbdc4671..681e20685 100644
--- a/src/hash/comb4p/comb4p.cpp
+++ b/src/hash/comb4p/comb4p.cpp
@@ -13,7 +13,7 @@ namespace Botan {
namespace {
-u32bit comb4p_block_size(const HashFunction* h1,
+size_t comb4p_block_size(const HashFunction* h1,
const HashFunction* h2)
{
if(h1->HASH_BLOCK_SIZE == h2->HASH_BLOCK_SIZE)
@@ -73,7 +73,7 @@ void Comb4P::clear()
hash2->update(0);
}
-void Comb4P::add_data(const byte input[], u32bit length)
+void Comb4P::add_data(const byte input[], size_t length)
{
hash1->update(input, length);
hash2->update(input, length);
diff --git a/src/hash/comb4p/comb4p.h b/src/hash/comb4p/comb4p.h
index 550b70b14..b09f2976b 100644
--- a/src/hash/comb4p/comb4p.h
+++ b/src/hash/comb4p/comb4p.h
@@ -39,7 +39,7 @@ class BOTAN_DLL Comb4P : public HashFunction
void clear();
private:
- void add_data(const byte input[], u32bit length);
+ void add_data(const byte input[], size_t length);
void final_result(byte out[]);
HashFunction* hash1;