aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/exceptn.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/exceptn.h')
-rw-r--r--src/utils/exceptn.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/exceptn.h b/src/utils/exceptn.h
index ef7b451bf..1177a4e7d 100644
--- a/src/utils/exceptn.h
+++ b/src/utils/exceptn.h
@@ -54,7 +54,7 @@ struct BOTAN_DLL Internal_Error : public Exception
*/
struct BOTAN_DLL Invalid_Key_Length : public Invalid_Argument
{
- Invalid_Key_Length(const std::string& name, u32bit length) :
+ Invalid_Key_Length(const std::string& name, size_t length) :
Invalid_Argument(name + " cannot accept a key of length " +
to_string(length))
{}
@@ -77,7 +77,7 @@ struct BOTAN_DLL Invalid_Block_Size : public Invalid_Argument
*/
struct BOTAN_DLL Invalid_IV_Length : public Invalid_Argument
{
- Invalid_IV_Length(const std::string& mode, u32bit bad_len) :
+ Invalid_IV_Length(const std::string& mode, size_t bad_len) :
Invalid_Argument("IV length " + to_string(bad_len) +
" is invalid for " + mode)
{}