aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate/lookup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstate/lookup.cpp')
-rw-r--r--src/libstate/lookup.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstate/lookup.cpp b/src/libstate/lookup.cpp
index 586c335e6..c701ad8e3 100644
--- a/src/libstate/lookup.cpp
+++ b/src/libstate/lookup.cpp
@@ -46,17 +46,17 @@ u32bit block_size_of(const std::string& name)
}
/*
-* Query the OUTPUT_LENGTH of a hash or MAC
+* Query the output_length() of a hash or MAC
*/
u32bit output_length_of(const std::string& name)
{
Algorithm_Factory& af = global_state().algorithm_factory();
if(const HashFunction* hash = af.prototype_hash_function(name))
- return hash->OUTPUT_LENGTH;
+ return hash->output_length();
if(const MessageAuthenticationCode* mac = af.prototype_mac(name))
- return mac->OUTPUT_LENGTH;
+ return mac->output_length();
throw Algorithm_Not_Found(name);
}