summaryrefslogtreecommitdiff
path: root/shacal2.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-08-16 05:42:58 -0400
committerJeffrey Walton <noloader@gmail.com>2017-08-16 05:42:58 -0400
commitb311aabc313c12d3b66c3468338453ed7fdfc0a9 (patch)
treef2f686c1cd30b6e1a8803b1a655c7213cb3beaf5 /shacal2.h
parente19fad007fde3bc744c9c7b1ebdbd7d49ae6a185 (diff)
downloadcryptopp-git-b311aabc313c12d3b66c3468338453ed7fdfc0a9.tar.gz
Update documentation
Diffstat (limited to 'shacal2.h')
-rw-r--r--shacal2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/shacal2.h b/shacal2.h
index 2a92cb6d..79c35c53 100644
--- a/shacal2.h
+++ b/shacal2.h
@@ -2,6 +2,7 @@
//! \file shacal2.h
//! \brief Classes for the SHACAL-2 block cipher
+//! \since Crypto++ 5.2, Intel SHA since Crypto++ 6.0
#ifndef CRYPTOPP_SHACAL2_H
#define CRYPTOPP_SHACAL2_H
@@ -20,9 +21,12 @@ struct SHACAL2_Info : public FixedBlockSize<32>, public VariableKeyLength<16, 16
//! \class SHACAL2
//! \brief SHACAL2 block cipher
+//! \since Crypto++ 5.2, Intel SHA since Crypto++ 6.0
//! \sa <a href="http://www.weidai.com/scan-mirror/cs.html#SHACAL-2">SHACAL-2</a>
class SHACAL2 : public SHACAL2_Info, public BlockCipherDocumentation
{
+ //! \brief SHACAL2 block cipher data processing functions
+ //! \details Provides implementation common to encryption and decryption
class CRYPTOPP_NO_VTABLE Base : public BlockCipherImpl<SHACAL2_Info>
{
public:
@@ -34,12 +38,16 @@ class SHACAL2 : public SHACAL2_Info, public BlockCipherDocumentation
static const word32 K[64];
};
+ //! \brief SHACAL2 block cipher data processing functions
+ //! \details Provides implementation for encryption transformation
class CRYPTOPP_NO_VTABLE Enc : public Base
{
public:
void ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
};
+ //! \brief SHACAL2 block cipher data processing functions
+ //! \details Provides implementation for decryption transformation
class CRYPTOPP_NO_VTABLE Dec : public Base
{
public: