From 63121e1e169616f724bf79b8aac1a2b4423c8904 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 13 Oct 2010 02:45:00 +0000 Subject: Use output_length() instead of OUTPUT_LENGTH pseudo-property --- src/libstate/lookup.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstate') 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); } -- cgit v1.2.3