diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-11-13 11:50:34 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-11-13 11:50:34 -0500 |
commit | 76b11b010c97d4fba5f6d5a48730191762413c9d (patch) | |
tree | a58a178391a0e6cd54439a25932a387ce00e1a32 /pubkey.h | |
parent | 5be05bce076a2e0ef11f80a1d9b493fb8078f8bb (diff) | |
download | cryptopp-git-76b11b010c97d4fba5f6d5a48730191762413c9d.tar.gz |
Add CRYPTOPP_STATIC_CONSTEXPR macro
Diffstat (limited to 'pubkey.h')
-rw-r--r-- | pubkey.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -719,7 +719,7 @@ CRYPTOPP_DLL void CRYPTOPP_API P1363_MGF1KDF2_Common(HashTransformation &hash, b class P1363_MGF1 : public MaskGeneratingFunction
{
public:
- CRYPTOPP_CONSTEXPR static const char * CRYPTOPP_API StaticAlgorithmName() {return "MGF1";}
+ CRYPTOPP_STATIC_CONSTEXPR char* const CRYPTOPP_API StaticAlgorithmName() {return "MGF1";}
void GenerateAndMask(HashTransformation &hash, byte *output, size_t outputLength, const byte *input, size_t inputLength, bool mask = true) const
{
P1363_MGF1KDF2_Common(hash, output, outputLength, input, inputLength, NULL, 0, mask, 0);
@@ -1986,7 +1986,7 @@ public: virtual ~DL_KeyAgreementAlgorithm_DH() {}
#endif
- CRYPTOPP_CONSTEXPR static const char * CRYPTOPP_API StaticAlgorithmName()
+ CRYPTOPP_STATIC_CONSTEXPR char* const CRYPTOPP_API StaticAlgorithmName()
{return COFACTOR_OPTION::ToEnum() == INCOMPATIBLE_COFACTOR_MULTIPLICTION ? "DHC" : "DH";}
Element AgreeWithEphemeralPrivateKey(const DL_GroupParameters<Element> ¶ms, const DL_FixedBasePrecomputation<Element> &publicPrecomputation, const Integer &privateExponent) const
|