aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac/ssl3mac
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-13 02:59:43 +0000
committerlloyd <[email protected]>2010-10-13 02:59:43 +0000
commit61ed0d4d90164675396feb7c7cecdd3bc5012f91 (patch)
tree31f48086086c78c6f0ce5fd533d819c8463be822 /src/mac/ssl3mac
parent3697dcff8b5e9765b41114281ce10e7ed3d3abb4 (diff)
Remove most uses of HASH_BLOCK_SIZE
Diffstat (limited to 'src/mac/ssl3mac')
-rw-r--r--src/mac/ssl3mac/ssl3_mac.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mac/ssl3mac/ssl3_mac.cpp b/src/mac/ssl3mac/ssl3_mac.cpp
index e29770bde..fcbccc06e 100644
--- a/src/mac/ssl3mac/ssl3_mac.cpp
+++ b/src/mac/ssl3mac/ssl3_mac.cpp
@@ -77,11 +77,11 @@ SSL3_MAC::SSL3_MAC(HashFunction* hash_in) :
hash_in->output_length()),
hash(hash_in)
{
- if(hash->HASH_BLOCK_SIZE == 0)
+ if(hash->hash_block_size() == 0)
throw Invalid_Argument("SSL3-MAC cannot be used with " + hash->name());
size_t INNER_HASH_LENGTH =
- (hash->name() == "SHA-160") ? 60 : hash->HASH_BLOCK_SIZE;
+ (hash->name() == "SHA-160") ? 60 : hash->hash_block_size();
i_key.resize(INNER_HASH_LENGTH);
o_key.resize(INNER_HASH_LENGTH);