aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstate')
-rw-r--r--src/libstate/lookup.cpp4
-rw-r--r--src/libstate/lookup.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libstate/lookup.cpp b/src/libstate/lookup.cpp
index f5d2c5a0c..24a46e3e9 100644
--- a/src/libstate/lookup.cpp
+++ b/src/libstate/lookup.cpp
@@ -32,7 +32,7 @@ bool have_algorithm(const std::string& name)
/*
* Query the block size of a cipher or hash
*/
-u32bit block_size_of(const std::string& name)
+size_t block_size_of(const std::string& name)
{
Algorithm_Factory& af = global_state().algorithm_factory();
@@ -48,7 +48,7 @@ u32bit block_size_of(const std::string& name)
/*
* Query the output_length() of a hash or MAC
*/
-u32bit output_length_of(const std::string& name)
+size_t output_length_of(const std::string& name)
{
Algorithm_Factory& af = global_state().algorithm_factory();
diff --git a/src/libstate/lookup.h b/src/libstate/lookup.h
index f1e1a52ca..02c1708aa 100644
--- a/src/libstate/lookup.h
+++ b/src/libstate/lookup.h
@@ -288,7 +288,7 @@ inline bool have_mac(const std::string& algo_spec)
* @param algo_spec the name of the algorithm
* @return block size of the specified algorithm
*/
-BOTAN_DLL u32bit block_size_of(const std::string& algo_spec);
+BOTAN_DLL size_t block_size_of(const std::string& algo_spec);
/**
* Find out the output length of a certain symmetric algorithm.
@@ -297,7 +297,7 @@ BOTAN_DLL u32bit block_size_of(const std::string& algo_spec);
* @param algo_spec the name of the algorithm
* @return output length of the specified algorithm
*/
-BOTAN_DLL u32bit output_length_of(const std::string& algo_spec);
+BOTAN_DLL size_t output_length_of(const std::string& algo_spec);
}