summaryrefslogtreecommitdiff
path: root/sha3.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-09-07 06:16:46 -0400
committerJeffrey Walton <noloader@gmail.com>2016-09-07 06:16:46 -0400
commitc1556295e60e435883c6976aeaf1a2be6606c738 (patch)
tree3bc407f76bf4f371bb764bb4abaec1aa75a650a6 /sha3.h
parent6e324c161f9fdb360cdf85efc6693e64ce8686bc (diff)
downloadcryptopp-git-c1556295e60e435883c6976aeaf1a2be6606c738.tar.gz
Add constexpr-ness to StaticAlgorithmName member function
Diffstat (limited to 'sha3.h')
-rw-r--r--sha3.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sha3.h b/sha3.h
index 5b3f2281..d0222150 100644
--- a/sha3.h
+++ b/sha3.h
@@ -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