diff options
author | Simon Warta <[email protected]> | 2015-08-20 19:49:31 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-08-21 00:50:28 +0200 |
commit | 5bedae43e66002aefadce0b6d43bf6791d5156ca (patch) | |
tree | 859e7915f4bbb2fa50f449e6e755856670cc8773 /src/lib/utils | |
parent | a59f013165776fc57eb2b2bfd8aff95d536d2016 (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.h | 10 |
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 |