summaryrefslogtreecommitdiff
path: root/des.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 /des.h
parent6e324c161f9fdb360cdf85efc6693e64ce8686bc (diff)
downloadcryptopp-git-c1556295e60e435883c6976aeaf1a2be6606c738.tar.gz
Add constexpr-ness to StaticAlgorithmName member function
Diffstat (limited to 'des.h')
-rw-r--r--des.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/des.h b/des.h
index 5ada3513..3e686dc0 100644
--- a/des.h
+++ b/des.h
@@ -30,7 +30,7 @@ protected:
struct DES_Info : public FixedBlockSize<8>, public FixedKeyLength<8>
{
// disable DES in DLL version by not exporting this function
- static const char * StaticAlgorithmName() {return "DES";}
+ CRYPTOPP_CONSTEXPR static const char *StaticAlgorithmName() {return "DES";}
};
//! \class DES
@@ -122,7 +122,7 @@ public:
//! \brief DESX block cipher information
struct DES_XEX3_Info : public FixedBlockSize<8>, public FixedKeyLength<24>
{
- static const char *StaticAlgorithmName() {return "DES-XEX3";}
+ CRYPTOPP_CONSTEXPR static const char *StaticAlgorithmName() {return "DES-XEX3";}
};
//! \class DES_XEX3