aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-10-22 17:35:04 +0000
committerlloyd <[email protected]>2009-10-22 17:35:04 +0000
commitbbe91cb8030c2d1a910082650a02a0747a718a8e (patch)
treed06232e2cedc05662eafe827a8471b1ec688e146 /src/stream
parent8addfadd8cb724158fefd4f9e36a177b2290d11f (diff)
Remove all exception specifications. The way these are designed in C++ is
just too fragile and not that useful. Something like Java's checked exceptions might be nice, but simply killing the process entirely if an unexpected exception is thrown is not exactly useful for something trying to be robust.
Diffstat (limited to 'src/stream')
-rw-r--r--src/stream/arc4/arc4.cpp2
-rw-r--r--src/stream/arc4/arc4.h2
-rw-r--r--src/stream/ctr/ctr.cpp2
-rw-r--r--src/stream/ctr/ctr.h2
-rw-r--r--src/stream/ofb/ofb.cpp2
-rw-r--r--src/stream/ofb/ofb.h2
-rw-r--r--src/stream/salsa20/salsa20.cpp2
-rw-r--r--src/stream/salsa20/salsa20.h2
-rw-r--r--src/stream/stream_cipher.h2
-rw-r--r--src/stream/turing/turing.cpp2
-rw-r--r--src/stream/turing/turing.h2
-rw-r--r--src/stream/wid_wake/wid_wake.cpp2
-rw-r--r--src/stream/wid_wake/wid_wake.h2
13 files changed, 13 insertions, 13 deletions
diff --git a/src/stream/arc4/arc4.cpp b/src/stream/arc4/arc4.cpp
index 0f78f7362..293a0a336 100644
--- a/src/stream/arc4/arc4.cpp
+++ b/src/stream/arc4/arc4.cpp
@@ -87,7 +87,7 @@ std::string ARC4::name() const
/*
* Clear memory of sensitive data
*/
-void ARC4::clear() throw()
+void ARC4::clear()
{
state.clear();
buffer.clear();
diff --git a/src/stream/arc4/arc4.h b/src/stream/arc4/arc4.h
index 3f92fa914..ae37cb165 100644
--- a/src/stream/arc4/arc4.h
+++ b/src/stream/arc4/arc4.h
@@ -21,7 +21,7 @@ class BOTAN_DLL ARC4 : public StreamCipher
public:
void cipher(const byte in[], byte out[], u32bit length);
- void clear() throw();
+ void clear();
std::string name() const;
StreamCipher* clone() const { return new ARC4(SKIP); }
diff --git a/src/stream/ctr/ctr.cpp b/src/stream/ctr/ctr.cpp
index 5ef5e447f..5f0880fa5 100644
--- a/src/stream/ctr/ctr.cpp
+++ b/src/stream/ctr/ctr.cpp
@@ -37,7 +37,7 @@ CTR_BE::~CTR_BE()
/*
* Zeroize
*/
-void CTR_BE::clear() throw()
+void CTR_BE::clear()
{
permutation->clear();
buffer.clear();
diff --git a/src/stream/ctr/ctr.h b/src/stream/ctr/ctr.h
index f60f21b5a..5f94170cc 100644
--- a/src/stream/ctr/ctr.h
+++ b/src/stream/ctr/ctr.h
@@ -31,7 +31,7 @@ class BOTAN_DLL CTR_BE : public StreamCipher
CTR_BE* clone() const
{ return new CTR_BE(permutation->clone()); }
- void clear() throw();
+ void clear();
CTR_BE(BlockCipher*);
~CTR_BE();
diff --git a/src/stream/ofb/ofb.cpp b/src/stream/ofb/ofb.cpp
index 577f61cbf..0d12d23bd 100644
--- a/src/stream/ofb/ofb.cpp
+++ b/src/stream/ofb/ofb.cpp
@@ -35,7 +35,7 @@ OFB::~OFB()
/*
* Zeroize
*/
-void OFB::clear() throw()
+void OFB::clear()
{
permutation->clear();
buffer.clear();
diff --git a/src/stream/ofb/ofb.h b/src/stream/ofb/ofb.h
index 5cd48716b..1985ae5a9 100644
--- a/src/stream/ofb/ofb.h
+++ b/src/stream/ofb/ofb.h
@@ -31,7 +31,7 @@ class BOTAN_DLL OFB : public StreamCipher
OFB* clone() const
{ return new OFB(permutation->clone()); }
- void clear() throw();
+ void clear();
OFB(BlockCipher*);
~OFB();
diff --git a/src/stream/salsa20/salsa20.cpp b/src/stream/salsa20/salsa20.cpp
index a147cdb45..3aae64eae 100644
--- a/src/stream/salsa20/salsa20.cpp
+++ b/src/stream/salsa20/salsa20.cpp
@@ -197,7 +197,7 @@ std::string Salsa20::name() const
/*
* Clear memory of sensitive data
*/
-void Salsa20::clear() throw()
+void Salsa20::clear()
{
state.clear();
buffer.clear();
diff --git a/src/stream/salsa20/salsa20.h b/src/stream/salsa20/salsa20.h
index a3e9a3706..3ca781ea2 100644
--- a/src/stream/salsa20/salsa20.h
+++ b/src/stream/salsa20/salsa20.h
@@ -25,7 +25,7 @@ class BOTAN_DLL Salsa20 : public StreamCipher
bool valid_iv_length(u32bit iv_len) const
{ return (iv_len == 8); }
- void clear() throw();
+ void clear();
std::string name() const;
StreamCipher* clone() const { return new Salsa20; }
diff --git a/src/stream/stream_cipher.h b/src/stream/stream_cipher.h
index d6abb37fc..29c16c8b5 100644
--- a/src/stream/stream_cipher.h
+++ b/src/stream/stream_cipher.h
@@ -61,7 +61,7 @@ class BOTAN_DLL StreamCipher : public SymmetricAlgorithm
/**
* Zeroize internal state
*/
- virtual void clear() throw() = 0;
+ virtual void clear() = 0;
/**
* StreamCipher constructor
diff --git a/src/stream/turing/turing.cpp b/src/stream/turing/turing.cpp
index 8336a70a7..810f65ca4 100644
--- a/src/stream/turing/turing.cpp
+++ b/src/stream/turing/turing.cpp
@@ -295,7 +295,7 @@ void Turing::set_iv(const byte iv[], u32bit length)
/*
* Clear memory of sensitive data
*/
-void Turing::clear() throw()
+void Turing::clear()
{
S0.clear();
S1.clear();
diff --git a/src/stream/turing/turing.h b/src/stream/turing/turing.h
index 59290f640..7291647ea 100644
--- a/src/stream/turing/turing.h
+++ b/src/stream/turing/turing.h
@@ -24,7 +24,7 @@ class BOTAN_DLL Turing : public StreamCipher
bool valid_iv_length(u32bit iv_len) const
{ return (iv_len % 4 == 0 && iv_len <= 16); }
- void clear() throw();
+ void clear();
std::string name() const { return "Turing"; }
StreamCipher* clone() const { return new Turing; }
Turing() : StreamCipher(4, 32, 4) { position = 0; }
diff --git a/src/stream/wid_wake/wid_wake.cpp b/src/stream/wid_wake/wid_wake.cpp
index 56f938fac..2a8946649 100644
--- a/src/stream/wid_wake/wid_wake.cpp
+++ b/src/stream/wid_wake/wid_wake.cpp
@@ -136,7 +136,7 @@ void WiderWake_41_BE::set_iv(const byte iv[], u32bit length)
/*
* Clear memory of sensitive data
*/
-void WiderWake_41_BE::clear() throw()
+void WiderWake_41_BE::clear()
{
position = 0;
t_key.clear();
diff --git a/src/stream/wid_wake/wid_wake.h b/src/stream/wid_wake/wid_wake.h
index a037a056e..23e1eacab 100644
--- a/src/stream/wid_wake/wid_wake.h
+++ b/src/stream/wid_wake/wid_wake.h
@@ -24,7 +24,7 @@ class BOTAN_DLL WiderWake_41_BE : public StreamCipher
bool valid_iv_length(u32bit iv_len) const
{ return (iv_len == 8); }
- void clear() throw();
+ void clear();
std::string name() const { return "WiderWake4+1-BE"; }
StreamCipher* clone() const { return new WiderWake_41_BE; }
WiderWake_41_BE() : StreamCipher(16, 16, 1) {}