diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-09-06 04:04:03 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-09-06 04:04:03 -0400 |
commit | a62aee441fabfda28d581cee45d8ad0e6e812342 (patch) | |
tree | f2d2328ca6531f848ebbda56a44636b302c0b0e4 /safer.h | |
parent | 45323bddd83982a183714d91167194f73bab1440 (diff) | |
download | cryptopp-git-a62aee441fabfda28d581cee45d8ad0e6e812342.tar.gz |
Backed out use of "static const" to declare constant; switch to "enum" (Issue 255)
Diffstat (limited to 'safer.h')
-rw-r--r-- | safer.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,7 +1,7 @@ // safer.h - written and placed in the public domain by Wei Dai
//! \file safer.h
-//! \brief Classes for the SAFER block cipher
+//! \brief Classes for the SAFER and SAFER-K block ciphers
#ifndef CRYPTOPP_SAFER_H
#define CRYPTOPP_SAFER_H
@@ -12,10 +12,12 @@ NAMESPACE_BEGIN(CryptoPP)
//! \class SAFER
-//! \brief SAFER base class
+//! \brief SAFER block cipher
class SAFER
{
public:
+ //! \class Base
+ //! \brief SAFER block cipher default operation
class CRYPTOPP_NO_VTABLE Base : public BlockCipher
{
public:
@@ -30,12 +32,16 @@ public: static const byte log_tab[256];
};
+ //! \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 CRYPTOPP_NO_VTABLE Dec : public Base
{
public:
|