summaryrefslogtreecommitdiff
path: root/cast.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 /cast.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 'cast.h')
-rw-r--r--cast.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/cast.h b/cast.h
index 63f1e763..52ae53c9 100644
--- a/cast.h
+++ b/cast.h
@@ -11,6 +11,8 @@
NAMESPACE_BEGIN(CryptoPP)
+//! \class CAST
+//! \brief CAST block cipher base
class CAST
{
protected:
@@ -29,6 +31,8 @@ struct CAST128_Info : public FixedBlockSize<8>, public VariableKeyLength<16, 5,
//! \sa <a href="http://www.weidai.com/scan-mirror/cs.html#CAST-128">CAST-128</a>
class CAST128 : public CAST128_Info, public BlockCipherDocumentation
{
+ //! \class Base
+ //! \brief CAST128 block cipher default operation
class CRYPTOPP_NO_VTABLE Base : public CAST, public BlockCipherImpl<CAST128_Info>
{
public:
@@ -39,12 +43,16 @@ class CAST128 : public CAST128_Info, public BlockCipherDocumentation
FixedSizeSecBlock<word32, 32> K;
};
+ //! \class Enc
+ //! \brief CAST128 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 CAST128 block cipher decryption operation
class CRYPTOPP_NO_VTABLE Dec : public Base
{
public:
@@ -68,6 +76,8 @@ struct CAST256_Info : public FixedBlockSize<16>, public VariableKeyLength<16, 16
//! \sa <a href="http://www.weidai.com/scan-mirror/cs.html#CAST-256">CAST-256</a>
class CAST256 : public CAST256_Info, public BlockCipherDocumentation
{
+ //! \class Base
+ //! \brief CAST256 block cipher default operation
class CRYPTOPP_NO_VTABLE Base : public CAST, public BlockCipherImpl<CAST256_Info>
{
public: