From 76c29eadafc2a4df656a6505b58293ef4cfa3288 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 12 Oct 2019 07:14:38 -0400 Subject: Add XTS block cipher mode of operation (GH #891, PR #892) --- cmac.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cmac.h') 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 ¶ms); -- cgit v1.2.1