diff options
author | lloyd <[email protected]> | 2008-06-27 17:08:09 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-27 17:08:09 +0000 |
commit | 7861a5a673ab8176d8d89e3f69a4c5a0cd649485 (patch) | |
tree | 8491af51ab57894d6ee15aca10fd84dce9f2330a | |
parent | 89382c8d6e8861e702def6a6e695fc2b783e7f09 (diff) |
Remove PRNG_Unseeded throw() specifies from the RNG randomize() functions.
They were probably not a good idea. If nothing else, these functions might
throw bad_alloc, and possibly other errors. Something broad like std::exception
might be applicable, but that seems pointlessly broad.
-rw-r--r-- | include/randpool.h | 2 | ||||
-rw-r--r-- | include/x931_rng.h | 2 | ||||
-rw-r--r-- | src/randpool.cpp | 2 | ||||
-rw-r--r-- | src/x931_rng.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/include/randpool.h b/include/randpool.h index dc8750dc3..e73ba7f3e 100644 --- a/include/randpool.h +++ b/include/randpool.h @@ -17,7 +17,7 @@ namespace Botan { class BOTAN_DLL Randpool : public RandomNumberGenerator { public: - void randomize(byte[], u32bit) throw(PRNG_Unseeded); + void randomize(byte[], u32bit); bool is_seeded() const; void clear() throw(); std::string name() const; diff --git a/include/x931_rng.h b/include/x931_rng.h index 3bb15ed6f..0076bb3f7 100644 --- a/include/x931_rng.h +++ b/include/x931_rng.h @@ -17,7 +17,7 @@ namespace Botan { class BOTAN_DLL ANSI_X931_RNG : public RandomNumberGenerator { public: - void randomize(byte[], u32bit) throw(PRNG_Unseeded); + void randomize(byte[], u32bit); bool is_seeded() const; void clear() throw(); std::string name() const; diff --git a/src/randpool.cpp b/src/randpool.cpp index be50ce2be..abb75c1f0 100644 --- a/src/randpool.cpp +++ b/src/randpool.cpp @@ -38,7 +38,7 @@ SecureVector<byte> randpool_prf(MessageAuthenticationCode* mac, /************************************************* * Generate a buffer of random bytes * *************************************************/ -void Randpool::randomize(byte out[], u32bit length) throw(PRNG_Unseeded) +void Randpool::randomize(byte out[], u32bit length) { if(!is_seeded()) throw PRNG_Unseeded(name()); diff --git a/src/x931_rng.cpp b/src/x931_rng.cpp index 30424f60a..d9ac69296 100644 --- a/src/x931_rng.cpp +++ b/src/x931_rng.cpp @@ -13,7 +13,7 @@ namespace Botan { /************************************************* * Generate a buffer of random bytes * *************************************************/ -void ANSI_X931_RNG::randomize(byte out[], u32bit length) throw(PRNG_Unseeded) +void ANSI_X931_RNG::randomize(byte out[], u32bit length) { if(!is_seeded()) throw PRNG_Unseeded(name()); |