summaryrefslogtreecommitdiff
path: root/mdc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-09-06 02:51:16 -0400
committerJeffrey Walton <noloader@gmail.com>2016-09-06 02:51:16 -0400
commit45323bddd83982a183714d91167194f73bab1440 (patch)
tree8b6d2543d1fba8a03b12572b8571155a8e972df7 /mdc.h
parent33522b39b1de5806798bded49e481baecb56dc58 (diff)
downloadcryptopp-git-45323bddd83982a183714d91167194f73bab1440.tar.gz
Initial fix for older Apple ld's non_lazy_ptr missing symbols (Issue 255)
Diffstat (limited to 'mdc.h')
-rw-r--r--mdc.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/mdc.h b/mdc.h
index 797e722e..249e6e31 100644
--- a/mdc.h
+++ b/mdc.h
@@ -1,10 +1,10 @@
- // mdc.h - written and placed in the public domain by Wei Dai
+// mdc.h - written and placed in the public domain by Wei Dai
#ifndef CRYPTOPP_MDC_H
#define CRYPTOPP_MDC_H
-/** \file
-*/
+//! \file mdc.h
+//! \brief Classes for the MDC message digest
#include "seckey.h"
#include "secblock.h"
@@ -12,18 +12,24 @@
NAMESPACE_BEGIN(CryptoPP)
-//! _
+//! \class MDC_Info
+//! \brief MDC_Info cipher information
template <class T>
struct MDC_Info : public FixedBlockSize<T::DIGESTSIZE>, public FixedKeyLength<T::BLOCKSIZE>
{
static std::string StaticAlgorithmName() {return std::string("MDC/")+T::StaticAlgorithmName();}
};
-//! <a href="http://www.weidai.com/scan-mirror/cs.html#MDC">MDC</a>
-/*! a construction by Peter Gutmann to turn an iterated hash function into a PRF */
+
+//! \class MDC
+//! \brief MDC cipher
+//! \details MDC() is a construction by Peter Gutmann to turn an iterated hash function into a PRF
+//! \sa <a href="http://www.weidai.com/scan-mirror/cs.html#MDC">MDC</a>
template <class T>
class MDC : public MDC_Info<T>
{
+ //! \class Enc
+ //! \brief MDC cipher encryption operation
class CRYPTOPP_NO_VTABLE Enc : public BlockCipherImpl<MDC_Info<T> >
{
typedef typename T::HashWordType HashWordType;