From 5a28b8e184f54e71a4148601f7da78d67a7e9590 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 13 Dec 2015 23:02:23 -0500 Subject: [PATCH] Additional documentation --- des.h | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/des.h b/des.h index 827b5e08..429d2e49 100644 --- a/des.h +++ b/des.h @@ -11,6 +11,8 @@ NAMESPACE_BEGIN(CryptoPP) +//! \class RawDES +//! \brief DES block cipher base class class CRYPTOPP_DLL RawDES { public: @@ -23,18 +25,20 @@ protected: FixedSizeSecBlock k; }; -//! _ +//! \class DES_Info +//! \brief DES block cipher information struct DES_Info : public FixedBlockSize<8>, public FixedKeyLength<8> { // disable DES in DLL version by not exporting this function static const char * StaticAlgorithmName() {return "DES";} }; -/// DES -/*! The DES implementation in Crypto++ ignores the parity bits - (the least significant bits of each byte) in the key. However - you can use CheckKeyParityBits() and CorrectKeyParityBits() to - check or correct the parity bits if you wish. */ +//! \class DES +//! \brief DES block cipher +//! \details The DES implementation in Crypto++ ignores the parity bits +//! (the least significant bits of each byte) in the key. However you can use CheckKeyParityBits() +//! and CorrectKeyParityBits() to check or correct the parity bits if you wish. +//! \sa DES class DES : public DES_Info, public BlockCipherDocumentation { class CRYPTOPP_NO_VTABLE Base : public BlockCipherImpl, public RawDES @@ -54,13 +58,16 @@ public: typedef BlockCipherFinal Decryption; }; -//! _ +//! \class DES_EDE2_Info +//! \brief 2-key TripleDES block cipher information struct DES_EDE2_Info : public FixedBlockSize<8>, public FixedKeyLength<16> { CRYPTOPP_DLL static const char * CRYPTOPP_API StaticAlgorithmName() {return "DES-EDE2";} }; -/// DES-EDE2 +//! \class DES_EDE2 +//! \brief 2-key TripleDES block cipher +/// \sa DES-EDE2 class DES_EDE2 : public DES_EDE2_Info, public BlockCipherDocumentation { class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Base : public BlockCipherImpl @@ -78,13 +85,16 @@ public: typedef BlockCipherFinal Decryption; }; -//! _ +//! \class DES_EDE3_Info +//! \brief 3-key TripleDES block cipher information struct DES_EDE3_Info : public FixedBlockSize<8>, public FixedKeyLength<24> { CRYPTOPP_DLL static const char * CRYPTOPP_API StaticAlgorithmName() {return "DES-EDE3";} }; -/// DES-EDE3 +//! \class DES_EDE3 +//! \brief 3-key TripleDES block cipher +//! \sa DES-EDE3 class DES_EDE3 : public DES_EDE3_Info, public BlockCipherDocumentation { class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE Base : public BlockCipherImpl @@ -102,13 +112,16 @@ public: typedef BlockCipherFinal Decryption; }; -//! _ +//! \class DES_XEX3_Info +//! \brief DESX block cipher information struct DES_XEX3_Info : public FixedBlockSize<8>, public FixedKeyLength<24> { static const char *StaticAlgorithmName() {return "DES-XEX3";} }; -/// DES-XEX3, AKA DESX +//! \class DES_XEX3 +//! \brief DESX block cipher +//! \sa DES-XEX3, AKA DESX class DES_XEX3 : public DES_XEX3_Info, public BlockCipherDocumentation { class CRYPTOPP_NO_VTABLE Base : public BlockCipherImpl