summaryrefslogtreecommitdiff
path: root/safer.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 /safer.h
parent6e324c161f9fdb360cdf85efc6693e64ce8686bc (diff)
downloadcryptopp-git-c1556295e60e435883c6976aeaf1a2be6606c738.tar.gz
Add constexpr-ness to StaticAlgorithmName member function
Diffstat (limited to 'safer.h')
-rw-r--r--safer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/safer.h b/safer.h
index 0a6cb064..6be48474 100644
--- a/safer.h
+++ b/safer.h
@@ -66,7 +66,7 @@ protected:
//! \brief SAFER-K block cipher information
struct SAFER_K_Info : public FixedBlockSize<8>, public VariableKeyLength<16, 8, 16, 8>, public VariableRounds<10, 1, 13>
{
- static const char *StaticAlgorithmName() {return "SAFER-K";}
+ CRYPTOPP_CONSTEXPR static const char *StaticAlgorithmName() {return "SAFER-K";}
};
//! \class SAFER_K
@@ -83,7 +83,7 @@ public:
//! \brief SAFER-SK block cipher information
struct SAFER_SK_Info : public FixedBlockSize<8>, public VariableKeyLength<16, 8, 16, 8>, public VariableRounds<10, 1, 13>
{
- static const char *StaticAlgorithmName() {return "SAFER-SK";}
+ CRYPTOPP_CONSTEXPR static const char *StaticAlgorithmName() {return "SAFER-SK";}
};
//! \class SAFER_SK