diff options
author | lloyd <[email protected]> | 2010-10-12 23:29:55 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-12 23:29:55 +0000 |
commit | 2af9ba577730f071eef44b3ba492c3bfad0a8ec6 (patch) | |
tree | 92a4c4e973756225d42bb99a99110b2669be7299 /src/mac/ssl3mac/ssl3_mac.cpp | |
parent | 97e8d6086171772cd5e45bcf2f5b1ea1e38e6bf5 (diff) |
Use size_t for BufferedComputation::add_data
Diffstat (limited to 'src/mac/ssl3mac/ssl3_mac.cpp')
-rw-r--r-- | src/mac/ssl3mac/ssl3_mac.cpp | 4 |
1 files changed, 2 insertions, 2 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); |