diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-09-06 02:51:16 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-09-06 02:51:16 -0400 |
commit | 45323bddd83982a183714d91167194f73bab1440 (patch) | |
tree | 8b6d2543d1fba8a03b12572b8571155a8e972df7 /mdc.h | |
parent | 33522b39b1de5806798bded49e481baecb56dc58 (diff) | |
download | cryptopp-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.h | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -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;
|