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 /sha3.h | |
parent | 6e324c161f9fdb360cdf85efc6693e64ce8686bc (diff) | |
download | cryptopp-git-c1556295e60e435883c6976aeaf1a2be6606c738.tar.gz |
Add constexpr-ness to StaticAlgorithmName member function
Diffstat (limited to 'sha3.h')
-rw-r--r-- | sha3.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -52,7 +52,7 @@ public: //! \brief Construct a SHA3-224 message digest
SHA3_224() : SHA3(DIGESTSIZE) {}
- static const char * StaticAlgorithmName() {return "SHA-3-224";}
+ CRYPTOPP_CONSTEXPR static const char *StaticAlgorithmName() {return "SHA-3-224";}
} CRYPTOPP_DEPRECATED("SHA-3 will be changing in the future due to FIPS 202 finalization");
//! \class SHA3_256
@@ -64,7 +64,7 @@ public: //! \brief Construct a SHA3-256 message digest
SHA3_256() : SHA3(DIGESTSIZE) {}
- static const char * StaticAlgorithmName() {return "SHA-3-256";}
+ CRYPTOPP_CONSTEXPR static const char *StaticAlgorithmName() {return "SHA-3-256";}
} CRYPTOPP_DEPRECATED("SHA-3 will be changing in the future due to FIPS 202 finalization");
//! \class SHA3_384
@@ -76,7 +76,7 @@ public: //! \brief Construct a SHA3-384 message digest
SHA3_384() : SHA3(DIGESTSIZE) {}
- static const char * StaticAlgorithmName() {return "SHA-3-384";}
+ CRYPTOPP_CONSTEXPR static const char *StaticAlgorithmName() {return "SHA-3-384";}
} CRYPTOPP_DEPRECATED("SHA-3 will be changing in the future due to FIPS 202 finalization");
//! \class SHA3_512
@@ -88,7 +88,7 @@ public: //! \brief Construct a SHA3-512 message digest
SHA3_512() : SHA3(DIGESTSIZE) {}
- static const char * StaticAlgorithmName() {return "SHA-3-512";}
+ CRYPTOPP_CONSTEXPR static const char *StaticAlgorithmName() {return "SHA-3-512";}
} CRYPTOPP_DEPRECATED("SHA-3 will be changing in the future due to FIPS 202 finalization");
NAMESPACE_END
|