aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/mac/mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/mac/mac.h')
-rw-r--r--src/lib/mac/mac.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/mac/mac.h b/src/lib/mac/mac.h
index de30b7dbb..522d71a58 100644
--- a/src/lib/mac/mac.h
+++ b/src/lib/mac/mac.h
@@ -124,6 +124,14 @@ class BOTAN_PUBLIC_API(2,0) MessageAuthenticationCode : public Buffered_Computat
}
/**
+ * @return new object representing the same algorithm as *this
+ */
+ std::unique_ptr<MessageAuthenticationCode> new_object() const
+ {
+ return std::unique_ptr<MessageAuthenticationCode>(this->clone());
+ }
+
+ /**
* Get a new object representing the same algorithm as *this
*/
virtual MessageAuthenticationCode* clone() const = 0;