diff options
author | lloyd <[email protected]> | 2010-10-13 02:45:00 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-13 02:45:00 +0000 |
commit | 63121e1e169616f724bf79b8aac1a2b4423c8904 (patch) | |
tree | 2375d5b5daaad8990b2cee951d137f2e7638e79b /src/libstate | |
parent | 879d062c2b93e32362e338d1c6f9b1eda0f88493 (diff) |
Use output_length() instead of OUTPUT_LENGTH pseudo-property
Diffstat (limited to 'src/libstate')
-rw-r--r-- | src/libstate/lookup.cpp | 6 |
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); } |