aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-08-20 19:49:31 +0200
committerSimon Warta <[email protected]>2015-08-21 00:50:28 +0200
commit5bedae43e66002aefadce0b6d43bf6791d5156ca (patch)
tree859e7915f4bbb2fa50f449e6e755856670cc8773 /src/lib/utils
parenta59f013165776fc57eb2b2bfd8aff95d536d2016 (diff)
Refactor ./botan speed
* Add random_prime benchmark * Add is_prime benchmark * Respect runtime in benchmark_transform(). This sets default runtime from 2s to 0.5s per configuration
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/exceptn.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/utils/exceptn.h b/src/lib/utils/exceptn.h
index 7e16a5dec..eef1b4d43 100644
--- a/src/lib/utils/exceptn.h
+++ b/src/lib/utils/exceptn.h
@@ -113,6 +113,16 @@ struct BOTAN_DLL Algorithm_Not_Found : public Lookup_Error
};
/**
+* No_Provider_Found Exception
+*/
+struct BOTAN_DLL No_Provider_Found : public Exception
+ {
+ No_Provider_Found(const std::string& name) :
+ Exception("Could not find any provider for algorithm named \"" + name + "\"")
+ {}
+ };
+
+/**
* Invalid_Algorithm_Name Exception
*/
struct BOTAN_DLL Invalid_Algorithm_Name : public Invalid_Argument