aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac/ssl3mac
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/mac/ssl3mac
parent97e8d6086171772cd5e45bcf2f5b1ea1e38e6bf5 (diff)
Use size_t for BufferedComputation::add_data
Diffstat (limited to 'src/mac/ssl3mac')
-rw-r--r--src/mac/ssl3mac/ssl3_mac.cpp4
-rw-r--r--src/mac/ssl3mac/ssl3_mac.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mac/ssl3mac/ssl3_mac.cpp b/src/mac/ssl3mac/ssl3_mac.cpp
index 781cb7f27..fc8d652c6 100644
--- a/src/mac/ssl3mac/ssl3_mac.cpp
+++ b/src/mac/ssl3mac/ssl3_mac.cpp
@@ -12,7 +12,7 @@ namespace Botan {
/*
* Update a SSL3-MAC Calculation
*/
-void SSL3_MAC::add_data(const byte input[], u32bit length)
+void SSL3_MAC::add_data(const byte input[], size_t length)
{
hash->update(input, length);
}
@@ -80,7 +80,7 @@ SSL3_MAC::SSL3_MAC(HashFunction* hash_in) :
if(hash->HASH_BLOCK_SIZE == 0)
throw Invalid_Argument("SSL3-MAC cannot be used with " + hash->name());
- u32bit INNER_HASH_LENGTH =
+ size_t INNER_HASH_LENGTH =
(hash->name() == "SHA-160") ? 60 : hash->HASH_BLOCK_SIZE;
i_key.resize(INNER_HASH_LENGTH);
diff --git a/src/mac/ssl3mac/ssl3_mac.h b/src/mac/ssl3mac/ssl3_mac.h
index 019163ec8..4d7b07dcc 100644
--- a/src/mac/ssl3mac/ssl3_mac.h
+++ b/src/mac/ssl3mac/ssl3_mac.h
@@ -29,7 +29,7 @@ class BOTAN_DLL SSL3_MAC : public MessageAuthenticationCode
SSL3_MAC(HashFunction* hash);
~SSL3_MAC() { delete hash; }
private:
- void add_data(const byte[], u32bit);
+ void add_data(const byte[], size_t);
void final_result(byte[]);
void key_schedule(const byte[], u32bit);