diff --git a/cham.h b/cham.h index 987e99d7..dc4c0474 100644 --- a/cham.h +++ b/cham.h @@ -31,6 +31,10 @@ NAMESPACE_BEGIN(CryptoPP) /// \since Crypto++ 7.1 struct CHAM64_Info : public FixedBlockSize<8>, public FixedKeyLength<16> { + /// \brief The algorithm name + /// \returns the algorithm name + /// \details StaticAlgorithmName returns the algorithm's name as a static + /// member function. static const std::string StaticAlgorithmName() { // Format is Cipher-Blocksize @@ -42,6 +46,10 @@ struct CHAM64_Info : public FixedBlockSize<8>, public FixedKeyLength<16> /// \since Crypto++ 7.1 struct CHAM128_Info : public FixedBlockSize<16>, public VariableKeyLength<16,16,32,16> { + /// \brief The algorithm name + /// \returns the algorithm name + /// \details StaticAlgorithmName returns the algorithm's name as a static + /// member function. static const std::string StaticAlgorithmName() { // Format is Cipher-Blocksize diff --git a/lea.h b/lea.h index a2fb8bb2..1c51952c 100644 --- a/lea.h +++ b/lea.h @@ -31,6 +31,10 @@ NAMESPACE_BEGIN(CryptoPP) /// \since Crypto++ 7.1 struct LEA_Info : public FixedBlockSize<16>, public VariableKeyLength<16,16,32,8> { + /// \brief The algorithm name + /// \returns the algorithm name + /// \details StaticAlgorithmName returns the algorithm's name as a static + /// member function. static const std::string StaticAlgorithmName() { // Format is Cipher-Blocksize diff --git a/simeck.h b/simeck.h index caebf859..94c92714 100644 --- a/simeck.h +++ b/simeck.h @@ -33,6 +33,10 @@ NAMESPACE_BEGIN(CryptoPP) /// \since Crypto++ 7.1 struct SIMECK32_Info : public FixedBlockSize<4>, public FixedKeyLength<8>, public FixedRounds<32> { + /// \brief The algorithm name + /// \returns the algorithm name + /// \details StaticAlgorithmName returns the algorithm's name as a static + /// member function. static const std::string StaticAlgorithmName() { // Format is Cipher-Blocksize @@ -44,6 +48,10 @@ struct SIMECK32_Info : public FixedBlockSize<4>, public FixedKeyLength<8>, publi /// \since Crypto++ 7.1 struct SIMECK64_Info : public FixedBlockSize<8>, public FixedKeyLength<16>, public FixedRounds<44> { + /// \brief The algorithm name + /// \returns the algorithm name + /// \details StaticAlgorithmName returns the algorithm's name as a static + /// member function. static const std::string StaticAlgorithmName() { // Format is Cipher-Blocksize @@ -68,7 +76,7 @@ public: { protected: void UncheckedSetKey(const byte *userKey, unsigned int keyLength, const NameValuePairs ¶ms); - std::string AlgorithmProvider() const; + std::string AlgorithmProvider() const; FixedSizeSecBlock m_rk; mutable FixedSizeSecBlock m_t; @@ -118,7 +126,7 @@ public: { protected: void UncheckedSetKey(const byte *userKey, unsigned int keyLength, const NameValuePairs ¶ms); - std::string AlgorithmProvider() const; + std::string AlgorithmProvider() const; FixedSizeSecBlock m_rk; mutable FixedSizeSecBlock m_t; diff --git a/simon.h b/simon.h index e415dfc3..6eff55e0 100644 --- a/simon.h +++ b/simon.h @@ -47,6 +47,10 @@ NAMESPACE_BEGIN(CryptoPP) template struct SIMON_Info : public FixedBlockSize, VariableKeyLength { + /// \brief The algorithm name + /// \returns the algorithm name + /// \details StaticAlgorithmName returns the algorithm's name as a static + /// member function. static const std::string StaticAlgorithmName() { // Format is Cipher-Blocksize(Keylength) @@ -90,6 +94,10 @@ public: class CRYPTOPP_NO_VTABLE Base : protected SIMON_Base, public BlockCipherImpl > { public: + /// \brief The algorithm name + /// \returns the algorithm name + /// \details AlgorithmName returns the algorithm's name as a + /// member function. std::string AlgorithmName() const { return StaticAlgorithmName() + (m_kwords == 0 ? "" : "(" + IntToString(m_kwords*sizeof(word32)*8) + ")"); @@ -149,6 +157,10 @@ public: class CRYPTOPP_NO_VTABLE Base : protected SIMON_Base, public BlockCipherImpl > { public: + /// \brief The algorithm name + /// \returns the algorithm name + /// \details AlgorithmName returns the algorithm's name as a + /// member function. std::string AlgorithmName() const { return StaticAlgorithmName() + (m_kwords == 0 ? "" : "(" + IntToString(m_kwords*sizeof(word64)*8) + ")"); diff --git a/speck.h b/speck.h index 9e0b26d1..37dbce5d 100644 --- a/speck.h +++ b/speck.h @@ -47,6 +47,10 @@ NAMESPACE_BEGIN(CryptoPP) template struct SPECK_Info : public FixedBlockSize, VariableKeyLength { + /// \brief The algorithm name + /// \returns the algorithm name + /// \details StaticAlgorithmName returns the algorithm's name as a static + /// member function. static const std::string StaticAlgorithmName() { // Format is Cipher-Blocksize(Keylength) @@ -90,6 +94,10 @@ public: class CRYPTOPP_NO_VTABLE Base : protected SPECK_Base, public BlockCipherImpl > { public: + /// \brief The algorithm name + /// \returns the algorithm name + /// \details AlgorithmName returns the algorithm's name as a + /// member function. std::string AlgorithmName() const { return StaticAlgorithmName() + (m_kwords == 0 ? "" : "(" + IntToString(m_kwords*sizeof(word32)*8) + ")"); @@ -149,6 +157,10 @@ public: class CRYPTOPP_NO_VTABLE Base : protected SPECK_Base, public BlockCipherImpl > { public: + /// \brief The algorithm name + /// \returns the algorithm name + /// \details AlgorithmName returns the algorithm's name as a + /// member function. std::string AlgorithmName() const { return StaticAlgorithmName() + (m_kwords == 0 ? "" : "(" + IntToString(m_kwords*sizeof(word64)*8) + ")"); diff --git a/tea.h b/tea.h index 7188724e..13a7bf63 100644 --- a/tea.h +++ b/tea.h @@ -15,6 +15,10 @@ NAMESPACE_BEGIN(CryptoPP) /// \brief TEA block cipher information struct TEA_Info : public FixedBlockSize<8>, public FixedKeyLength<16>, public VariableRounds<32> { + /// \brief The algorithm name + /// \returns the algorithm name + /// \details StaticAlgorithmName returns the algorithm's name as a static + /// member function. CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "TEA";} }; @@ -58,6 +62,10 @@ typedef TEA::Decryption TEADecryption; /// \brief XTEA block cipher information struct XTEA_Info : public FixedBlockSize<8>, public FixedKeyLength<16>, public VariableRounds<32> { + /// \brief The algorithm name + /// \returns the algorithm name + /// \details StaticAlgorithmName returns the algorithm's name as a static + /// member function. CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "XTEA";} }; @@ -98,6 +106,10 @@ public: /// \brief BTEA block cipher information struct BTEA_Info : public FixedKeyLength<16> { + /// \brief The algorithm name + /// \returns the algorithm name + /// \details StaticAlgorithmName returns the algorithm's name as a static + /// member function. CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "BTEA";} };