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 fe3388f3b..1fbb36824 100644
--- a/src/lib/mac/mac.h
+++ b/src/lib/mac/mac.h
@@ -51,6 +51,14 @@ class BOTAN_DLL MessageAuthenticationCode : public Buffered_Computation,
* Get a new object representing the same algorithm as *this
*/
virtual MessageAuthenticationCode* clone() const = 0;
+
+ /**
+ * @return provider information about this implementation. Default is "base",
+ * might also return "sse2", "avx2", "openssl", or some other arbitrary string.
+ * The return value is guaranteed to point to a string literal constant.
+ */
+ virtual const char* provider() const { return "base"; }
+
};
typedef MessageAuthenticationCode MAC;