From a2828f6ae67c3d7294118a8144b1b2ec431237c4 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 22 Jul 2004 00:51:57 +0000 Subject: fix documentation, fix PanamaMAC, fix algorithm names git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@186 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- seckey.h | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) (limited to 'seckey.h') diff --git a/seckey.h b/seckey.h index aa315a3..7fcfe86 100644 --- a/seckey.h +++ b/seckey.h @@ -16,7 +16,7 @@ inline CipherDir ReverseCipherDir(CipherDir dir) return (dir == ENCRYPTION) ? DECRYPTION : ENCRYPTION; } -//! . +//! to be inherited by block ciphers with fixed block size template class FixedBlockSize { @@ -26,7 +26,7 @@ public: // ************** rounds *************** -//! . +//! to be inherited by ciphers with fixed number of rounds template class FixedRounds { @@ -45,7 +45,7 @@ protected: } }; -//! . +//! to be inherited by ciphers with variable number of rounds template // use INT_MAX here because enums are treated as signed ints class VariableRounds { @@ -72,7 +72,7 @@ protected: // ************** key length *************** -//! . +//! to be inherited by keyed algorithms with fixed key length template class FixedKeyLength { @@ -137,7 +137,7 @@ static inline void CheckedSetKey(T *obj, CipherDir dir, const byte *key, unsigne obj->UncheckedSetKey(dir, key, length); } -//! . +//! _ template class CRYPTOPP_NO_VTABLE SimpleKeyingInterfaceImpl : public BASE { @@ -153,13 +153,13 @@ protected: }; template -class CRYPTOPP_NO_VTABLE BlockCipherImpl : public AlgorithmImpl, INFO>, public INFO +class CRYPTOPP_NO_VTABLE BlockCipherImpl : public AlgorithmImpl > > { public: unsigned int BlockSize() const {return this->BLOCKSIZE;} }; -//! . +//! _ template class BlockCipherFinal : public ClonableImpl, BASE> { @@ -180,23 +180,18 @@ public: } }; -//! . +//! _ template -class MessageAuthenticationCodeImpl : public -#ifdef CRYPTOPP_DOXYGEN_PROCESSING - MessageAuthenticationCode -#else - AlgorithmImpl, INFO> -#endif +class MessageAuthenticationCodeImpl : public AlgorithmImpl, INFO> { public: - void SetKey(const byte *key, unsigned int length, const NameValuePairs ¶m = g_nullNameValuePairs) + void SetKey(const byte *key, unsigned int length, const NameValuePairs ¶ms = g_nullNameValuePairs) { - CheckedSetKey(this, Empty(), key, length, param); + CheckedSetKey(this, Empty(), key, length, params); } }; -//! . +//! _ template class MessageAuthenticationCodeFinal : public ClonableImpl, MessageAuthenticationCodeImpl > { @@ -222,8 +217,10 @@ struct BlockCipherDocumentation }; /*! \brief Each class derived from this one defines two types, Encryption and Decryption, - both of which implement the SymmetricCipher interface. See CipherModeDocumentation - for information about using block ciphers. */ + both of which implement the SymmetricCipher interface. Two types of classes derive + from this class: stream ciphers and block cipher modes. Stream ciphers can be used + alone, cipher mode classes need to be used with a block cipher. See CipherModeDocumentation + for more for information about using cipher modes and block ciphers. */ struct SymmetricCipherDocumentation { //! implements the SymmetricCipher interface -- cgit v1.2.1