summaryrefslogtreecommitdiff
path: root/authenc.h
diff options
context:
space:
mode:
Diffstat (limited to 'authenc.h')
-rw-r--r--authenc.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/authenc.h b/authenc.h
index 085816b8..36d5e6c3 100644
--- a/authenc.h
+++ b/authenc.h
@@ -1,13 +1,18 @@
+// authenc.h - written and placed in the public domain by Wei Dai
+
+//! \file
+//! \brief Base classes for working with authenticated encryption modes of encryption
+
#ifndef CRYPTOPP_AUTHENC_H
#define CRYPTOPP_AUTHENC_H
#include "cryptlib.h"
#include "secblock.h"
-#include "trap.h"
NAMESPACE_BEGIN(CryptoPP)
-//! .
+//! \class AuthenticatedSymmetricCipherBase
+//! \brief
class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE AuthenticatedSymmetricCipherBase : public AuthenticatedSymmetricCipher
{
public:
@@ -15,7 +20,7 @@ public:
bool IsRandomAccess() const {return false;}
bool IsSelfInverting() const {return true;}
- void UncheckedSetKey(const byte *,unsigned int,const CryptoPP::NameValuePairs &) {CRYPTOPP_ASSERT(false);}
+ void UncheckedSetKey(const byte *,unsigned int,const CryptoPP::NameValuePairs &) {assert(false);}
void SetKey(const byte *userKey, size_t keylength, const NameValuePairs &params);
void Restart() {if (m_state > State_KeySet) m_state = State_KeySet;}