aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac/hmac
diff options
context:
space:
mode:
Diffstat (limited to 'src/mac/hmac')
-rw-r--r--src/mac/hmac/hmac.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mac/hmac/hmac.cpp b/src/mac/hmac/hmac.cpp
index dfd800426..90da24eaf 100644
--- a/src/mac/hmac/hmac.cpp
+++ b/src/mac/hmac/hmac.cpp
@@ -26,7 +26,7 @@ void HMAC::final_result(byte mac[])
{
hash->final(mac);
hash->update(o_key);
- hash->update(mac, OUTPUT_LENGTH);
+ hash->update(mac, output_length());
hash->final(mac);
hash->update(i_key);
}
@@ -85,7 +85,7 @@ MessageAuthenticationCode* HMAC::clone() const
* HMAC Constructor
*/
HMAC::HMAC(HashFunction* hash_in) :
- MessageAuthenticationCode(hash_in->OUTPUT_LENGTH,
+ MessageAuthenticationCode(hash_in->output_length(),
0, 2*hash_in->HASH_BLOCK_SIZE),
hash(hash_in)
{