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 /pkcspad.h | |
parent | 6e324c161f9fdb360cdf85efc6693e64ce8686bc (diff) | |
download | cryptopp-git-c1556295e60e435883c6976aeaf1a2be6606c738.tar.gz |
Add constexpr-ness to StaticAlgorithmName member function
Diffstat (limited to 'pkcspad.h')
-rw-r--r-- | pkcspad.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -19,7 +19,7 @@ NAMESPACE_BEGIN(CryptoPP) class PKCS_EncryptionPaddingScheme : public PK_EncryptionMessageEncodingMethod
{
public:
- static const char * StaticAlgorithmName() {return "EME-PKCS1-v1_5";}
+ CRYPTOPP_CONSTEXPR static const char *StaticAlgorithmName() {return "EME-PKCS1-v1_5";}
size_t MaxUnpaddedLength(size_t paddedLength) const;
void Pad(RandomNumberGenerator &rng, const byte *raw, size_t inputLength, byte *padded, size_t paddedLength, const NameValuePairs ¶meters) const;
@@ -60,12 +60,12 @@ CRYPTOPP_DLL_TEMPLATE_CLASS PKCS_DigestDecoration<SHA512>; class CRYPTOPP_DLL PKCS1v15_SignatureMessageEncodingMethod : public PK_DeterministicSignatureMessageEncodingMethod
{
public:
- static const char * CRYPTOPP_API StaticAlgorithmName() {return "EMSA-PKCS1-v1_5";}
+ CRYPTOPP_CONSTEXPR static const char * CRYPTOPP_API StaticAlgorithmName() {return "EMSA-PKCS1-v1_5";}
size_t MinRepresentativeBitLength(size_t hashIdentifierSize, size_t digestSize) const
{return 8 * (digestSize + hashIdentifierSize + 10);}
- void ComputeMessageRepresentative(RandomNumberGenerator &rng,
+ void ComputeMessageRepresentative(RandomNumberGenerator &rng,
const byte *recoverableMessage, size_t recoverableMessageLength,
HashTransformation &hash, HashIdentifier hashIdentifier, bool messageEmpty,
byte *representative, size_t representativeBitLength) const;
|