diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-10-12 07:14:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-12 07:14:38 -0400 |
commit | 76c29eadafc2a4df656a6505b58293ef4cfa3288 (patch) | |
tree | e7131043045caecc7aa6ece37ec2befdfcb8df52 /cmac.h | |
parent | 85ecff46093ff8f3da4efd8b5d840b8bb7d681ce (diff) | |
download | cryptopp-git-76c29eadafc2a4df656a6505b58293ef4cfa3288.tar.gz |
Add XTS block cipher mode of operation (GH #891, PR #892)
Diffstat (limited to 'cmac.h')
-rw-r--r-- | cmac.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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);
|