diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-11-29 10:54:33 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-11-29 10:54:33 -0500 |
commit | 61ec50dabe14c5d4582ac187706ea27645b3562b (patch) | |
tree | 18a2eebb7adc8c9556ce132d7081a105fa058d6b /safer.h | |
parent | 16ebfa72bf130c4725e652e4d3688d97d3feb0ee (diff) | |
download | cryptopp-git-61ec50dabe14c5d4582ac187706ea27645b3562b.tar.gz |
Change Doxygen comment style from //! to ///
Also see https://groups.google.com/forum/#!topic/cryptopp-users/A7-Xt5Knlzw
Diffstat (limited to 'safer.h')
-rw-r--r-- | safer.h | 52 |
1 files changed, 26 insertions, 26 deletions
@@ -1,7 +1,7 @@ // safer.h - originally written and placed in the public domain by Wei Dai
-//! \file safer.h
-//! \brief Classes for the SAFER and SAFER-K block ciphers
+/// \file safer.h
+/// \brief Classes for the SAFER and SAFER-K block ciphers
#ifndef CRYPTOPP_SAFER_H
#define CRYPTOPP_SAFER_H
@@ -11,13 +11,13 @@ NAMESPACE_BEGIN(CryptoPP)
-//! \class SAFER
-//! \brief SAFER block cipher
+/// \class SAFER
+/// \brief SAFER block cipher
class SAFER
{
public:
- //! \class Base
- //! \brief SAFER block cipher default operation
+ /// \class Base
+ /// \brief SAFER block cipher default operation
class CRYPTOPP_NO_VTABLE Base : public BlockCipher
{
public:
@@ -32,16 +32,16 @@ public: static const byte log_tab[256];
};
- //! \class Enc
- //! \brief SAFER block cipher encryption operation
+ /// \class Enc
+ /// \brief SAFER block cipher encryption operation
class CRYPTOPP_NO_VTABLE Enc : public Base
{
public:
void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
};
- //! \class Dec
- //! \brief SAFER block cipher decryption operation
+ /// \class Dec
+ /// \brief SAFER block cipher decryption operation
class CRYPTOPP_NO_VTABLE Dec : public Base
{
public:
@@ -49,12 +49,12 @@ public: };
};
-//! \class SAFER_Impl
-//! \brief SAFER block cipher default implementation
-//! \tparam BASE SAFER::Enc or SAFER::Dec derived base class
-//! \tparam INFO SAFER_Info derived class
-//! \tparam STR flag indicating a strengthened implementation
-//! \details SAFER-K is not strengthened; while SAFER-SK is strengthened.
+/// \class SAFER_Impl
+/// \brief SAFER block cipher default implementation
+/// \tparam BASE SAFER::Enc or SAFER::Dec derived base class
+/// \tparam INFO SAFER_Info derived class
+/// \tparam STR flag indicating a strengthened implementation
+/// \details SAFER-K is not strengthened; while SAFER-SK is strengthened.
template <class BASE, class INFO, bool STR>
class CRYPTOPP_NO_VTABLE SAFER_Impl : public BlockCipherImpl<INFO, BASE>
{
@@ -62,16 +62,16 @@ protected: bool Strengthened() const {return STR;}
};
-//! \class SAFER_K_Info
-//! \brief SAFER-K block cipher information
+/// \class SAFER_K_Info
+/// \brief SAFER-K block cipher information
struct SAFER_K_Info : public FixedBlockSize<8>, public VariableKeyLength<16, 8, 16, 8>, public VariableRounds<10, 1, 13>
{
CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "SAFER-K";}
};
-//! \class SAFER_K
-//! \brief SAFER-K block cipher
-//! \sa <a href="http://www.cryptopp.com/wiki/SAFER-K">SAFER-K</a>
+/// \class SAFER_K
+/// \brief SAFER-K block cipher
+/// \sa <a href="http://www.cryptopp.com/wiki/SAFER-K">SAFER-K</a>
class SAFER_K : public SAFER_K_Info, public SAFER, public BlockCipherDocumentation
{
public:
@@ -79,16 +79,16 @@ public: typedef BlockCipherFinal<DECRYPTION, SAFER_Impl<Dec, SAFER_K_Info, false> > Decryption;
};
-//! \class SAFER_SK_Info
-//! \brief SAFER-SK block cipher information
+/// \class SAFER_SK_Info
+/// \brief SAFER-SK block cipher information
struct SAFER_SK_Info : public FixedBlockSize<8>, public VariableKeyLength<16, 8, 16, 8>, public VariableRounds<10, 1, 13>
{
CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "SAFER-SK";}
};
-//! \class SAFER_SK
-//! \brief SAFER-SK block cipher
-//! \sa <a href="http://www.cryptopp.com/wiki/SAFER-SK">SAFER-SK</a>
+/// \class SAFER_SK
+/// \brief SAFER-SK block cipher
+/// \sa <a href="http://www.cryptopp.com/wiki/SAFER-SK">SAFER-SK</a>
class SAFER_SK : public SAFER_SK_Info, public SAFER, public BlockCipherDocumentation
{
public:
|