summaryrefslogtreecommitdiff
path: root/cmac.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-10-12 07:14:38 -0400
committerGitHub <noreply@github.com>2019-10-12 07:14:38 -0400
commit76c29eadafc2a4df656a6505b58293ef4cfa3288 (patch)
treee7131043045caecc7aa6ece37ec2befdfcb8df52 /cmac.h
parent85ecff46093ff8f3da4efd8b5d840b8bb7d681ce (diff)
downloadcryptopp-git-76c29eadafc2a4df656a6505b58293ef4cfa3288.tar.gz
Add XTS block cipher mode of operation (GH #891, PR #892)
Diffstat (limited to 'cmac.h')
-rw-r--r--cmac.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmac.h b/cmac.h
index f3bcad48..59a9f020 100644
--- a/cmac.h
+++ b/cmac.h
@@ -10,6 +10,13 @@
#include "seckey.h"
#include "secblock.h"
+/// \brief Enable CMAC and wide block ciphers
+/// \details CMAC is only defined for AES. The library can support wide
+/// block ciphers like Kaylna and Threefish since we know the polynomials.
+#ifndef CRYPTOPP_CMAC_WIDE_BLOCK_CIPHERS
+# define CRYPTOPP_CMAC_WIDE_BLOCK_CIPHERS 1
+#endif // CRYPTOPP_CMAC_WIDE_BLOCK_CIPHERS
+
NAMESPACE_BEGIN(CryptoPP)
/// \brief CMAC base implementation
@@ -19,7 +26,6 @@ class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE CMAC_Base : public MessageAuthenticationCo
public:
virtual ~CMAC_Base() {}
-
CMAC_Base() : m_counter(0) {}
void UncheckedSetKey(const byte *key, unsigned int length, const NameValuePairs &params);