summaryrefslogtreecommitdiff
path: root/safer.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-09-06 04:04:03 -0400
committerJeffrey Walton <noloader@gmail.com>2016-09-06 04:04:03 -0400
commita62aee441fabfda28d581cee45d8ad0e6e812342 (patch)
treef2d2328ca6531f848ebbda56a44636b302c0b0e4 /safer.h
parent45323bddd83982a183714d91167194f73bab1440 (diff)
downloadcryptopp-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.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/safer.h b/safer.h
index 3828d8e3..a9150284 100644
--- a/safer.h
+++ b/safer.h
@@ -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: