aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-07-10 21:13:06 +0000
committerlloyd <[email protected]>2012-07-10 21:13:06 +0000
commit3a33e128961e7ea4bd584639ba393d056bec3d23 (patch)
treea1ad9cb2ca67541a90a61b0723c7040191484356 /src/stream
parent0e718e402cb58c5ccfe538dfe36962c73a223d3a (diff)
Add deleted copy constructors/assignment operators where appropriate.
Replace C++98 style private copy constructors/assignment ops with ones annotated with delete.
Diffstat (limited to 'src/stream')
-rw-r--r--src/stream/ctr/ctr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stream/ctr/ctr.h b/src/stream/ctr/ctr.h
index 9f391da7e..84cf9ed5d 100644
--- a/src/stream/ctr/ctr.h
+++ b/src/stream/ctr/ctr.h
@@ -42,6 +42,10 @@ class BOTAN_DLL CTR_BE : public StreamCipher
* @param cipher the underlying block cipher to use
*/
CTR_BE(BlockCipher* cipher);
+
+ CTR_BE(const CTR_BE&) = delete;
+ CTR_BE& operator=(const CTR_BE&) = delete;
+
~CTR_BE();
private:
void key_schedule(const byte key[], size_t key_len);