From 05edb9f3e52ce18d0833d612fcfebf1442f859ea Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 1 Nov 2010 19:31:43 +0000 Subject: Add missing file --- src/algo_base/algo_base.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/algo_base/algo_base.h (limited to 'src/algo_base') diff --git a/src/algo_base/algo_base.h b/src/algo_base/algo_base.h new file mode 100644 index 000000000..9b41caf8b --- /dev/null +++ b/src/algo_base/algo_base.h @@ -0,0 +1,43 @@ +/* +* Symmetric Algorithm Base Class +* (C) 1999-2007 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ + +#ifndef BOTAN_ALGO_BASE_CLASS_H__ +#define BOTAN_ALGO_BASE_CLASS_H__ + +#include +#include + +namespace Botan { + +/** +* This class represents a symmetric algorithm object. +*/ +class BOTAN_DLL Algorithm + { + public: + + /** + * Make a new object representing the same algorithm as *this + */ + virtual Algorithm* clone() const = 0; + + /** + * Zeroize internal state + */ + virtual void clear() = 0; + + /** + * @return name of this algorithm + */ + virtual std::string name() const = 0; + + virtual ~Algorithm() {} + }; + +} + +#endif -- cgit v1.2.3