From a62aee441fabfda28d581cee45d8ad0e6e812342 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 6 Sep 2016 04:04:03 -0400 Subject: Backed out use of "static const" to declare constant; switch to "enum" (Issue 255) --- safer.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'safer.h') 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: -- cgit v1.2.1