aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac/hmac/hmac.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mac/hmac/hmac.h')
-rw-r--r--src/mac/hmac/hmac.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mac/hmac/hmac.h b/src/mac/hmac/hmac.h
index cb5bd6917..39a084874 100644
--- a/src/mac/hmac/hmac.h
+++ b/src/mac/hmac/hmac.h
@@ -34,6 +34,10 @@ class BOTAN_DLL HMAC : public MessageAuthenticationCode
* @param hash the hash to use for HMACing
*/
HMAC(HashFunction* hash);
+
+ HMAC(const HMAC&) = delete;
+ HMAC& operator=(const HMAC&) = delete;
+
~HMAC() { delete hash; }
private:
void add_data(const byte[], size_t);