aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac/cmac/cmac.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mac/cmac/cmac.h')
-rw-r--r--src/mac/cmac/cmac.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/mac/cmac/cmac.h b/src/mac/cmac/cmac.h
index 8297e5ea1..b5f3eec1a 100644
--- a/src/mac/cmac/cmac.h
+++ b/src/mac/cmac/cmac.h
@@ -13,8 +13,8 @@
namespace Botan {
-/*
-* CMAC
+/**
+* CMAC, also known as OMAC1
*/
class BOTAN_DLL CMAC : public MessageAuthenticationCode
{
@@ -23,10 +23,18 @@ class BOTAN_DLL CMAC : public MessageAuthenticationCode
std::string name() const;
MessageAuthenticationCode* clone() const;
+ /**
+ * CMAC's polynomial doubling operation
+ * @param in the input
+ * @param polynomial the byte value of the polynomial
+ */
static SecureVector<byte> poly_double(const MemoryRegion<byte>& in,
byte polynomial);
- CMAC(BlockCipher* e);
+ /**
+ * @param cipher the underlying block cipher to use
+ */
+ CMAC(BlockCipher* cipher);
~CMAC();
private:
void add_data(const byte[], u32bit);