diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-09-07 06:16:46 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-09-07 06:16:46 -0400 |
commit | c1556295e60e435883c6976aeaf1a2be6606c738 (patch) | |
tree | 3bc407f76bf4f371bb764bb4abaec1aa75a650a6 /elgamal.h | |
parent | 6e324c161f9fdb360cdf85efc6693e64ce8686bc (diff) | |
download | cryptopp-git-c1556295e60e435883c6976aeaf1a2be6606c738.tar.gz |
Add constexpr-ness to StaticAlgorithmName member function
Diffstat (limited to 'elgamal.h')
-rw-r--r-- | elgamal.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -16,8 +16,8 @@ NAMESPACE_BEGIN(CryptoPP)
-class CRYPTOPP_NO_VTABLE ElGamalBase : public DL_KeyAgreementAlgorithm_DH<Integer, NoCofactorMultiplication>,
- public DL_KeyDerivationAlgorithm<Integer>,
+class CRYPTOPP_NO_VTABLE ElGamalBase : public DL_KeyAgreementAlgorithm_DH<Integer, NoCofactorMultiplication>,
+ public DL_KeyDerivationAlgorithm<Integer>,
public DL_SymmetricEncryptionAlgorithm
{
public:
@@ -86,7 +86,7 @@ public: }
virtual const DL_GroupParameters_GFP & GetGroupParameters() const =0;
-
+
#ifndef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562
virtual ~ElGamalBase() {}
#endif
@@ -127,7 +127,7 @@ struct ElGamal {
typedef DL_CryptoSchemeOptions<ElGamal, ElGamalKeys, int, int, int> SchemeOptions;
- static const char * StaticAlgorithmName() {return "ElgamalEnc/Crypto++Padding";}
+ CRYPTOPP_CONSTEXPR static const char *StaticAlgorithmName() {return "ElgamalEnc/Crypto++Padding";}
typedef SchemeOptions::GroupParameters GroupParameters;
//! implements PK_Encryptor interface
|